Xqt created this task.
Herald added subscribers: pywikibot-bugs-list, Zppix, Aklapper.
TASK DESCRIPTION
When the KeyError is not fetched by _getEntryClass method the following
exception occurs
>>> import pwb, pywikibot as py
>>> from pywikibot.logentries import LogEntryFactory
>>> site = py.Site()
>>> lef = LogEntryFactory(site)
>>> data = {'type': 'foo'}
>>> x = lef._createFromData(data)
Traceback (most recent call last):
File "<pyshell#82>", line 1, in <module>
x = lef._createFromData(data)
File "pywikibot\logentries.py", line 443, in _createFromData
pywikibot.debug(u"API log entry received:\n" + logdata,
TypeError: coercing to Unicode: need string or buffer, dict found
>>>
The type of logdata is a dict.
TASK DETAIL
https://phabricator.wikimedia.org/T135507
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, Zppix, pywikibot-bugs-list, Ladsgroup, russblau, Xqt, Mdupont,
jayvdb
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs