Page MenuHomePhabricator

pagefromfile OS error when no parameters provided
Closed, ResolvedPublic

Description

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'


Version: core-(2.0)
Severity: normal

Details

Reference
bz68660

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:39 AM
bzimport set Reference to bz68660.
bzimport added a subscriber: Unknown Object (????).
jayvdb created this task.Jul 27 2014, 2:57 AM

Change 152181 had a related patch set uploaded by Mpaa:
Bug 68660: pagefromfile handles not existing file

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

Change 152181 merged by jenkins-bot:
Bug 68660: pagefromfile handles not existing file

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