Dalba added a comment.

https://travis-ci.org/wikimedia/pywikibot/jobs/339874487#L4452

________________ TestSimpleLogentries.test_simple_entries_dewp _________________
self = <tests.logentry_tests.TestSimpleLogentries testMethod=test_simple_entries_dewp>
    def wrapped_method(self):
        sitedata = self.sites[key]
        self.site_key = key
        self.family = sitedata['family']
        self.code = sitedata['code']
        self.site = sitedata['site']
>       func(self, key)
tests/aspects.py:786: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/logentry_tests.py:147: in test_simple_entries
    self._test_logevent(simple_type)
tests/logentry_tests.py:79: in _test_logevent
    self.assertIsInstance(logentry.comment(), unicode)
pywikibot/logentries.py:147: in comment
    return self.data['comment']
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = {'timestamp': '2018-02-10T16:01:09Z', 'suppressed': '', 'logid': 104816260, 'commenthidden': '', 'actionhidden': '', 'user': 'Itti', 'type': 'renameuser', 'action': 'renameuser'}
key = 'comment'
    def __missing__(self, key):
        """Debug when the key is missing."""
        pywikibot.debug(u"API log entry received:\n" + repr(self),
                        _logger)
>       raise KeyError("Log entry (%s) has no '%s' key" % (self._type, key))
E       KeyError: "Log entry (renameuser) has no 'comment' key"

TASK DETAIL
https://phabricator.wikimedia.org/T186985

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Dalba
Cc: Aklapper, pywikibot-bugs-list, Dalba, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to