https://bugzilla.wikimedia.org/show_bug.cgi?id=68660
Bug ID: 68660 Summary: pagefromfile OS error when no parameters provided Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: jayvdb@gmail.com Web browser: --- Mobile Platform: ---
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'
https://bugzilla.wikimedia.org/show_bug.cgi?id=68660
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |69069
https://bugzilla.wikimedia.org/show_bug.cgi?id=68660
--- Comment #1 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 152181 had a related patch set uploaded by Mpaa: Bug 68660: pagefromfile handles not existing file
https://gerrit.wikimedia.org/r/152181
https://bugzilla.wikimedia.org/show_bug.cgi?id=68660
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=68660
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 152181 merged by jenkins-bot: Bug 68660: pagefromfile handles not existing file
https://gerrit.wikimedia.org/r/152181
https://bugzilla.wikimedia.org/show_bug.cgi?id=68660
Mpaa mpaa.wiki@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|PATCH_TO_REVIEW |RESOLVED CC| |mpaa.wiki@gmail.com Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org