| JJMC89 updated the task description. (Show Details) |
CHANGES TO TASK DESCRIPTION
``````lang=json,name=stderr
Traceback (most recent call last):Example response with parts of the log event hidden
File "JJMC89_bot/enwiki/massmessage_list_updater.py", line 375, in <module>{
main()
File "JJMC89_bot/enwiki/massmessage_list_updater.py", line 350, in main"batchcomplete": "",
new_groups = set(log_event.newgroups)"query": {
File "/shared/pywikipedia/core/pywikibot/logentries.py", line 280, in newgroups "logevents": [
if 'new' in self._params: # old mw style {
File "/shared/pywikipedia/core/pywikibot/logentries.py", line 87, in _params "logid": 89126214,
return self.data[self._expectedType] "actionhidden": "",
File "/shared/pywikipedia/core/pywikibot/logentries.py", line 34, in __missing__ "type": "rights",
raise KeyError("Log entry (%s) has no '%s' key" % (self._type, key)) "action": "rights",
KeyError: "Log entry (rights) has no 'rights' key"
``` "userhidden": "",
[massmessage_list_updater.py](https://github.com/JJMC89/JJMC89_bot/blob/985c4fbca7d62cec5651fb3a5e05dccff1816d07/enwiki/massmessage_list_updater.py)
```name=version.py "timestamp": "2018-02-16T09:09:40Z",
Pywikibot: [https] r-pywikibot-core.git (d80eded, g1, 2018/02/14, 08:56:53, "comment": "Confirmed as recently active IP. ok)
Release version: 3.0-devGranting 'confirmed' flag manually."
requests version: 2.2.1 }
cacerts: /etc/ssl/certs/ca-certificates.crt ]
certificate test: ok
Python: 3.4.3 (default, Nov 28 2017, 16:41:13)}
[GCC 4.8.4]}
```
...
The `newgroups` (or `new`) keys do not exist in `params` in this case.``````lang=json,name=stderr
Traceback (most recent call last):Example response with parts of the log event hidden
File "JJMC89_bot/enwiki/massmessage_list_updater.py", line 375, in <module>{
main()
File "JJMC89_bot/enwiki/massmessage_list_updater.py", line 350, in main"batchcomplete": "",
new_groups = set(log_event.newgroups)"query": {
File "/shared/pywikipedia/core/pywikibot/logentries.py", line 280, in newgroups "logevents": [
if 'new' in self._params: # old mw style {
File "/shared/pywikipedia/core/pywikibot/logentries.py", line 87, in _params "logid": 89126214,
return self.data[self._expectedType] "actionhidden": "",
File "/shared/pywikipedia/core/pywikibot/logentries.py", line 34, in __missing__ "type": "rights",
raise KeyError("Log entry (%s) has no '%s' key" % (self._type, key)) "action": "rights",
KeyError: "Log entry (rights) has no 'rights' key"
``` "userhidden": "",
[massmessage_list_updater.py](https://github.com/JJMC89/JJMC89_bot/blob/985c4fbca7d62cec5651fb3a5e05dccff1816d07/enwiki/massmessage_list_updater.py)
```name=version.py "timestamp": "2018-02-16T09:09:40Z",
Pywikibot: [https] r-pywikibot-core.git (d80eded, g1, 2018/02/14, 08:56:53, "comment": "Confirmed as recently active IP. ok)
Release version: 3.0-devGranting 'confirmed' flag manually."
requests version: 2.2.1 }
cacerts: /etc/ssl/certs/ca-certificates.crt ]
certificate test: ok
Python: 3.4.3 (default, Nov 28 2017, 16:41:13)}
[GCC 4.8.4]}
```
TASK DETAIL
EMAIL PREFERENCES
To: JJMC89
Cc: Aklapper, pywikibot-bugs-list, JJMC89, Magul, Tbscho, rafidaslam, MayS, Mdupont, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
Cc: 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
