https://bugzilla.wikimedia.org/show_bug.cgi?id=57344
Web browser: --- Bug ID: 57344 Summary: UnusedFilesGenerator throws an exception when being called without extension parameter Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: crangasi2001@yahoo.com Classification: Unclassified Mobile Platform: ---
Traceback (most recent call last): File "pwb.py", line 123, in <module> run_python_file(fn, argv, argvu) File "pwb.py", line 64, in run_python_file exec compile(source, filename, "exec") in main_mod.__dict__ File "unusedfiles.py", line 130, in <module> main() File "unusedfiles.py", line 111, in main for page in generator: File "/home/acipu/stage/core/pywikibot/pagegenerators.py", line 849, in PreloadingGenerator for page in generator: File "/home/acipu/stage/core/pywikibot/pagegenerators.py", line 922, in UnusedFilesGenerator extension=extension): File "/home/acipu/stage/core/pywikibot/__init__.py", line 251, in wrapper return method(*__args, **__kw) File "/home/acipu/stage/core/pywikibot/__init__.py", line 251, in wrapper return method(*__args, **__kw) TypeError: unusedfiles() got an unexpected keyword argument 'extension'
The reason for that is site.unusedfiles no longer has this parameter. Adding a patch that solves the problem. I kept the extension param in the generator for compatibility reasons.
https://bugzilla.wikimedia.org/show_bug.cgi?id=57344
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |info@gno.de Resolution|--- |FIXED
--- Comment #1 from xqt info@gno.de --- bot is sleeping
pywikipedia-bugs@lists.wikimedia.org