Page MenuHomePhabricator

Missing message for the anti-spam filter error
Closed, ResolvedPublic

Description

Author: basilicofresco

Description:
At the moment you do not get any error message when you try to change a page with replace.py and the spam filter blocks your edit.

For example writing...

replace.py "htttp" "http" -page:"Clinique makeup" -lang:en

The edit will not be saved but you will get:

1 page was changed.
Updating page [[Clinique makeup]] via API

The variable "error" at line 10317 in wikipedia.py is None, but should be SpamfilterError.

version.py:
Pywikibot: [https] r/pywikibot/compat (r10829, 5b8f363, 2014/02/02, 13:13:58, ok)
Release version: 1.0b1
Python: 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
unicode test: ok


Version: compat-(1.0)
Severity: normal
OS: Windows XP
Platform: PC

Details

Reference
bz60739

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:04 AM
bzimport set Reference to bz60739.
bzimport added a subscriber: Unknown Object (????).

Change 111098 had a related patch set uploaded by Mpaa:
Bug 60739 - Missing message for the anti-spam filter error

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

Change 111098 merged by jenkins-bot:
Bug 60739 - Missing message for the anti-spam filter error

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