https://bugzilla.wikimedia.org/show_bug.cgi?id=68551
Bug ID: 68551 Summary: coordinate_import doesnt handle zero parameters nicely Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: Wikidata Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
If coordinate_import is called without any parameters, it produces an exception.
$ python pwb.py scripts/coordinate_import.py 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/coordinate_import.py", line 91, in <module> main() File "scripts/coordinate_import.py", line 88, in main coordbot.run() File "scripts/coordinate_import.py", line 50, in run for page in self.generator: File ".../pywikibot/pagegenerators.py", line 973, in PreloadingGenerator for page in generator: TypeError: 'NoneType' object is not iterable <type 'exceptions.TypeError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort