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: [email protected]
          Reporter: [email protected]
       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'

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to