jenkins-bot has submitted this change and it was merged.
Change subject: [bugfix] Fix TypeError when coercing string with dict ......................................................................
[bugfix] Fix TypeError when coercing string with dict
Bug: T135507 Change-Id: I75797e214bbc4e0fd2e38cf755227edf2ff7d080 --- M pywikibot/logentries.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/logentries.py b/pywikibot/logentries.py index a12715d..05607b6 100644 --- a/pywikibot/logentries.py +++ b/pywikibot/logentries.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """Objects representing Mediawiki log entries.""" # -# (C) Pywikibot team, 2007-2015 +# (C) Pywikibot team, 2007-2016 # # Distributed under the terms of the MIT license. # @@ -439,6 +439,6 @@ logtype = logdata['type'] return LogEntryFactory._getEntryClass(logtype)(logdata, self._site) except KeyError: - pywikibot.debug(u"API log entry received:\n" + logdata, + pywikibot.debug('API log entry received:\n{0}'.format(logdata), _logger) raise Error("Log entry has no 'type' key")
pywikibot-commits@lists.wikimedia.org