https://bugzilla.wikimedia.org/show_bug.cgi?id=68658
Bug ID: 68658 Summary: imagerecat without parameters results in obtuse backtrace Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
$ python pwb.py scripts/imagerecat -simulate Traceback (most recent call last): File "pwb.py", line 157, in <module> run_python_file(fn, argv, argvu) File "pwb.py", line 67, in run_python_file exec(compile(source, filename, "exec"), main_mod.__dict__) File "scripts/imagerecat.py", line 482, in <module> main() File "scripts/imagerecat.py", line 478, in main categorizeImages(generator, onlyFilter, onlyUncat) File "scripts/imagerecat.py", line 79, in categorizeImages imagepage = pywikibot.ImagePage(page.site(), page.title()) TypeError: 'APISite' object is not callable <type 'exceptions.TypeError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort