Page MenuHomePhabricator

AbuseFilterDisallowedError does not use "other" information
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce:

>>> import pywikibot
>>> s = pywikibot.Site()
>>> p = pywikibot.Page(s, 'Foobar')
>>> raise AbuseFilterDisallowedError(p, 'bar', 'baz')

What happens?:

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    raise AbuseFilterDisallowedError(p, 'bar', 'baz')
pywikibot.exceptions.AbuseFilterDisallowedError: Edit to page [[Foobar]] disallowed by the AbuseFilter.
bar
>>>

What should have happened instead?:
Either add the "other" information to the exception message string or this information can be omitted I guess

Software version:
Pywikibot 6.4+
rPWBC15ca230

Event Timeline

JJMC89 changed the task status from Open to In Progress.Nov 3 2021, 5:13 AM
JJMC89 claimed this task.

I don't think we need it, so let's drop it.

Change 736322 had a related patch set uploaded (by JJMC89; author: JJMC89):

[pywikibot/core@master] Drop the other attribute for AbuseFilterDisallowedError

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

Change 736322 merged by jenkins-bot:

[pywikibot/core@master] Drop the other attribute for AbuseFilterDisallowedError

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