Page MenuHomePhabricator

misspelling breaks when script is not configured for the site
Closed, ResolvedPublic


$ python pwb misspelling -family:wikipedia -lang:ar -simulate
<type 'exceptions.KeyError'>
Traceback (most recent call last):

File "", line 157, 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 140, in <module>
File "scripts/", line 135, in main
  bot = MisspellingRobot(always, firstPageTitle, main_only)
File "scripts/", line 60, in __init__
  self.createPageGenerator(firstPageTitle), False, main_only)
File "scripts/", line 73, in createPageGenerator
  % self.misspellingTemplate[mylang]

KeyError: u'ar'
CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort

Version: core-(2.0)
Severity: minor



Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:40 AM
bzimport set Reference to bz68665.

Change 152810 had a related patch set uploaded by Mpaa:
Bug 68665-misspelling fails if site not configured

Change 152810 merged by jenkins-bot:
Bug 68665-misspelling fails if site not configured