Page MenuHomePhabricator

echo.Notification fails: invalid value "text" for parameter "notformat"
Closed, ResolvedPublic

Description

>>> s = py.Site('en')
>>> x = s.notifications()
>>> y = next(x)
WARNING: API error unknown_notformat: Unrecognized value for parameter "notformat": text.

Traceback (most recent call last):
  File "<pyshell#16>", line 1, in <module>
    y = next(x)
  File "pywikibot\site.py", line 2333, in notifications
    params['not' + key] = kwargs[key]
  File "pywikibot\data\api.py", line 2273, in submit
    raise APIError(**result['error'])
APIError: unknown_notformat: Unrecognized value for parameter "notformat": text. [help:See https://en.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.]

Event Timeline

Xqt triaged this task as High priority.Sep 22 2018, 10:55 AM

Change 462128 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] re-enable notifications

https://gerrit.wikimedia.org/r/462128

Change 462128 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] re-enable notifications

https://gerrit.wikimedia.org/r/462128