JJMC89 created this task.
JJMC89 added projects: Pywikibot-core, MediaWiki-API.
Herald added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION

I don't see any recent Pywikibot changes that would cause this error. Was there a recent change to the API?

stderr
Traceback (most recent call last):
  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
    new_groups = set(log_event.newgroups)
  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"

massmessage_list_updater.py

version.py
Pywikibot: [https] r-pywikibot-core.git (d80eded, g1, 2018/02/14, 08:56:53, ok)
Release version: 3.0-dev
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
https://phabricator.wikimedia.org/T187635

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

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

Reply via email to