Last modified: 2014-07-27 01:47:48 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 T70551, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68551 - coordinate_import.py doesn't handle zero parameters nicely
coordinate_import.py doesn't handle zero parameters nicely
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Ricordisamoa
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-25 01:38 UTC by John Mark Vandenberg
Modified: 2014-07-27 01:47 UTC (History)
1 user (show)

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


Attachments

Description John Mark Vandenberg 2014-07-25 01:38:55 UTC
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
Comment 1 Gerrit Notification Bot 2014-07-26 01:38:30 UTC
Change 149488 had a related patch set uploaded by Ricordisamoa:
call showHelp() instead of raising TypeError in coordinate_import.py

https://gerrit.wikimedia.org/r/149488
Comment 2 Gerrit Notification Bot 2014-07-27 01:41:50 UTC
Change 149488 merged by jenkins-bot:
call showHelp() instead of raising TypeError in coordinate_import.py

https://gerrit.wikimedia.org/r/149488

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


Navigation
Links