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: [email protected]
Reporter: [email protected]
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l