JAnD created this task. JAnD added a subscriber: JAnD. JAnD added projects: pywikibot-core, Pywikibot-interwiki.py. Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION Interwiki bot (core) crashes on redirected categories.
pwb.py interwiki -family:wiktionary -start:category:! -lang:sg
```
Retrieving 10 pages from wiktionary:de. WARNING: D:\pwb\pywikibot\family.py:900: FamilyMaintenanceWarning: Family name w ikimediachapter does not match family module name wikimedia Retrieving 10 pages from wiktionary:uz. Retrieving 10 pages from wiktionary:ro. Retrieving 10 pages from wiktionary:tn. Dump sg (wiktionary) appended. Traceback (most recent call last): File "D:\pwb\pwb.py", line 213, in <module> run_python_file(filename, argv, argvu, file_package) File "D:\pwb\pwb.py", line 82, in run_python_file main_mod.__dict__) File ".\scripts\interwiki.py", line 2645, in <module> main() File ".\scripts\interwiki.py", line 2620, in main bot.run() File ".\scripts\interwiki.py", line 2360, in run self.queryStep() File ".\scripts\interwiki.py", line 2333, in queryStep self.oneQuery() File ".\scripts\interwiki.py", line 2329, in oneQuery subject.batchLoaded(self) File ".\scripts\interwiki.py", line 1455, in batchLoaded elif page.isEmpty() and not page.isCategory(): File "D:\pwb\pywikibot\page.py", line 688, in isEmpty txt = self.get() File "D:\pwb\pywikibot\tools.py", line 869, in wrapper return obj(*__args, **__kw) File "D:\pwb\pywikibot\page.py", line 354, in get self._getInternals(sysop) File "D:\pwb\pywikibot\page.py", line 386, in _getInternals raise self._getexception pywikibot.exceptions.IsRedirectPage: Page [[tn:Category:Inli]] is a redirect pag e. <class 'pywikibot.exceptions.IsRedirectPage'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort ``` Also it does not work correctly with -ignore parameter
``` D:\pwb>pwb.py interwiki -family:wiktionary -lang:sg -start:category:! -whenneede d -untranslated -ignore:tn:category:Inli Traceback (most recent call last): File "D:\pwb\pwb.py", line 213, in <module> run_python_file(filename, argv, argvu, file_package) File "D:\pwb\pwb.py", line 82, in run_python_file main_mod.__dict__) File ".\scripts\interwiki.py", line 2645, in <module> main() File ".\scripts\interwiki.py", line 2486, in main if globalvar.readOptions(arg): File ".\scripts\interwiki.py", line 581, in readOptions self.ignore += [pywikibot.Page(None, p) for p in arg[8:].split(",")] File "D:\pwb\pywikibot\tools.py", line 869, in wrapper return obj(*__args, **__kw) File "D:\pwb\pywikibot\tools.py", line 869, in wrapper return obj(*__args, **__kw) File "D:\pwb\pywikibot\page.py", line 1858, in __init__ super(Page, self).__init__(source, title, ns) File "D:\pwb\pywikibot\page.py", line 133, in __init__ % (type(source), source)) pywikibot.exceptions.Error: Invalid argument type '<type 'NoneType'>' in Page co nstructor: None <class 'pywikibot.exceptions.Error'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
```
TASK DETAIL https://phabricator.wikimedia.org/T89809
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: JAnD Cc: pywikipedia-bugs, JAnD, Aklapper, jayvdb