jenkins-bot has submitted this change and it was merged.
Change subject: Fix crash during handling of unusual api response ......................................................................
Fix crash during handling of unusual api response
commit 0658eba in 2010 changed a debugging output such that it always throws an exception because string format arguments are not all used in the format string.
Change-Id: I3742affd93899176ac261dd8f5958d8ed1967105 --- M pywikibot/data/api.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: XZise: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/data/api.py b/pywikibot/data/api.py index 4f46027..9cb5e5c 100644 --- a/pywikibot/data/api.py +++ b/pywikibot/data/api.py @@ -1064,8 +1064,8 @@ return if "query" not in self.data: pywikibot.debug( - u"%s: stopped iteration because 'query' not found in api response." - % (self.__class__.__name__, self.resultkey), + u"%s: stopped iteration because 'query' not found in api " + u"response." % self.__class__.__name__, _logger) pywikibot.debug(unicode(self.data), _logger) return