Last modified: 2014-08-15 16:35:50 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 T70660, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68660 - pagefromfile OS error when no parameters provided
pagefromfile OS error when no parameters provided
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks: pwb_script_tests
  Show dependency treegraph
 
Reported: 2014-07-27 02:57 UTC by John Mark Vandenberg
Modified: 2014-08-15 16:35 UTC (History)
2 users (show)

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


Attachments

Description John Mark Vandenberg 2014-07-27 02:57:06 UTC
pagefromfile should show help if an appropriate filename isnt specified.  It defailts to dict.txt, and reports an OS error if it doesnt exist.

If the default filename 'dict.txt' is useful for the regular users of the script, the script should check whether it exists first, and show help if it doesnt exist.

$ python pwb.py pagefromfile.py -simulate
Reading 'dict.txt'...
[Errno 2] No such file or directory: 'dict.txt'
Comment 1 Gerrit Notification Bot 2014-08-12 18:28:01 UTC
Change 152181 had a related patch set uploaded by Mpaa:
Bug 68660: pagefromfile handles not existing file

https://gerrit.wikimedia.org/r/152181
Comment 2 Gerrit Notification Bot 2014-08-15 03:00:56 UTC
Change 152181 merged by jenkins-bot:
Bug 68660: pagefromfile handles not existing file

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

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


Navigation
Links