Last modified: 2013-11-21 09:33:58 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59344, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57344 - UnusedFilesGenerator throws an exception when being called without extension parameter
UnusedFilesGenerator throws an exception when being called without extension ...
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-21 08:39 UTC by Strainu
Modified: 2013-11-21 09:33 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Strainu 2013-11-21 08:39:55 UTC
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.
Comment 1 xqt 2013-11-21 09:33:58 UTC
bot is sleeping

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links