Page MenuHomePhabricator throws Exception if not configured for the site
Closed, ResolvedPublic


Pywikibot scripts should do something better than raise an exception in main()

$ python scripts/
Traceback (most recent call last):

File "", line 166, in <module>
  run_python_file(fn, argv, argvu)
File "", line 67, in run_python_file
  exec(compile(source, filename, "exec"), main_mod.__dict__)
File "scripts/", line 253, in <module>
File "scripts/", line 135, in main
  raise Exception("Missing configuration for site %r" % wikiSite)

Exception: Missing configuration for site Site("wikidata", "wikidata")
<type 'exceptions.Exception'>

Version: core-(2.0)
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:33 AM
bzimport set Reference to bz69089.
jayvdb created this task.Aug 4 2014, 3:28 AM