Last modified: 2014-09-02 01:35:03 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 T71089, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69089 - lonelypages.py throws Exception if not configured for the site
lonelypages.py throws Exception if not configured for the site
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
Other scripts (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Ricordisamoa
:
Depends on:
Blocks: pwb_script_tests
  Show dependency treegraph
 
Reported: 2014-08-04 03:28 UTC by John Mark Vandenberg
Modified: 2014-09-02 01:35 UTC (History)
2 users (show)

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


Attachments

Description John Mark Vandenberg 2014-08-04 03:28:31 UTC
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'>
Comment 1 John Mark Vandenberg 2014-08-04 03:34:23 UTC
A related changeset at https://gerrit.wikimedia.org/r/#/c/148941
Comment 2 Ricordisamoa 2014-08-04 23:16:33 UTC
per comment #1
Comment 3 Mpaa 2014-08-07 17:20:26 UTC
https://gerrit.wikimedia.org/r/#/c/148941 merged.

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


Navigation
Links