https://bugzilla.wikimedia.org/show_bug.cgi?id=57879
Web browser: --- Bug ID: 57879 Summary: impossible to run solve_disambiguation.py on redirects Product: Pywikibot Version: compat (1.0) Hardware: All OS: All Status: NEW Severity: blocker Priority: Unprioritized Component: solve_disambiguation.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: hercule.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Since yesterday I can't run solve_disambiguation.py with -redir option. The command line is :
python solve_disambiguation.py -redir Agence France Presse
The error stack is :
Traceback (most recent call last): File "solve_disambiguation.py", line 1147, in <module> main() File "solve_disambiguation.py", line 1142, in main bot.run() File "solve_disambiguation.py", line 1018, in run if not self.findAlternatives(disambPage): File "solve_disambiguation.py", line 897, in findAlternatives target = disambPage.getRedirectTarget().title() File "/data/project/herculebot/pywikibot-compat/wikipedia.py", line 3120, in getRedirectTarget target = err[0].replace('&quot;', '"') AttributeError: 'IsRedirectPage' object has no attribute 'replace'
version.Py output is : Pywikibot: [https] r/pywikibot/compat (r10559, 341ed66, 2013/12/01, 19:41:39, OUTDATED) Release version: 1.0b1 Python: 2.7.3 (default, Sep 26 2013, 20:03:06) [GCC 4.6.3] config-settings: use_api = True use_api_login = True unicode test: ok