JJMC89 updated the task description. (Show Details)

CHANGES TO TASK DESCRIPTION
...
```

```lang=python,name=Code to reproduce
>>> site = pywikibot.Site('en', 'wikipedia')
>>> rights_event = next(iter(site.logevents(logtype='rights', start='20180216090941', total=1)))
>>> rights_event
<RightsEntry(wikipedia:en, logid=89126214)>
>>> rights_event.data
{'type': 'rights', 'logid': 89126214, 'userhidden': '', 'action': 'rights', 'timestamp': '2018-02-16T09:09:40Z', 'comment': "Confirmed as recently active IP. Granting 'confirmed' flag manually.", 'actionhidden': ''}
>>> rights_event.newgroups
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/shared/pywikipedia/core/pywikibot/logentries.py", line 280, in newgroups
if 'new' in self._params: # old mw style
File "/shared/pywikipedia/core/pywikibot/logentries.py", line 87, in _params
return self.data[self._expectedType]
File "/shared/pywikipedia/core/pywikibot/logentries.py", line 34, in __missing__
raise KeyError("Log entry (%s) has no '%s' key" % (self._type, key))
KeyError: "Log entry (rights) has no 'rights' key"
```

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

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

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

Reply via email to