https://bugzilla.wikimedia.org/show_bug.cgi?id=69089
Bug ID: 69089 Summary: lonelypages throws Exception if not configured for the site 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: ---
Pywikibot scripts should do something better than raise an exception in main()
$ python pwb.py scripts/lonelypages.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/lonelypages.py", line 253, in <module> main() File "scripts/lonelypages.py", line 135, in main raise Exception("Missing configuration for site %r" % wikiSite) Exception: Missing configuration for site Site("wikidata", "wikidata") <type 'exceptions.Exception'>
https://bugzilla.wikimedia.org/show_bug.cgi?id=69089
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |69069
--- Comment #1 from John Mark Vandenberg jayvdb@gmail.com --- A related changeset at https://gerrit.wikimedia.org/r/#/c/148941
https://bugzilla.wikimedia.org/show_bug.cgi?id=69089
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ricordisamoa@openmailbox.or | |g Assignee|Pywikipedia-bugs@lists.wiki |ricordisamoa@openmailbox.or |media.org |g
pywikipedia-bugs@lists.wikimedia.org