Last modified: 2014-09-02 01:02:10 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 T71091, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69091 - add_text.py and commonscat.py report NoEnoughData to user
add_text.py and commonscat.py report NoEnoughData to user
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
Other scripts (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Ricordisamoa
:
Depends on:
Blocks: pwb_script_tests
  Show dependency treegraph
 
Reported: 2014-08-04 04:04 UTC by John Mark Vandenberg
Modified: 2014-09-02 01:02 UTC (History)
1 user (show)

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


Attachments

Description John Mark Vandenberg 2014-08-04 04:04:10 UTC
If add_text is called without parameters, it should give a nice warning or show help.

$ python pwb.py scripts/add_text.py
Traceback (most recent call last):
  File "pwb.py", line 166, 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/add_text.py", line 371, in <module>
    main()
  File "scripts/add_text.py", line 354, in main
    'You have to specify the generator you want to use for the script!')
__main__.NoEnoughData: You have to specify the generator you want to use for the script!
<class '__main__.NoEnoughData'>
Comment 1 Gerrit Notification Bot 2014-08-05 21:11:44 UTC
Change 151971 had a related patch set uploaded by Ricordisamoa:
call pywikibot.showHelp() instead of raising NoEnoughData

https://gerrit.wikimedia.org/r/151971
Comment 2 Gerrit Notification Bot 2014-08-05 23:28:26 UTC
Change 151971 merged by jenkins-bot:
call pywikibot.showHelp() instead of raising NoEnoughData

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

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


Navigation
Links