Page MenuHomePhabricator

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

Description

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

File "pwb.py", line 157, 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/misspelling.py", line 140, in <module>
  main()
File "scripts/misspelling.py", line 135, in main
  bot = MisspellingRobot(always, firstPageTitle, main_only)
File "scripts/misspelling.py", line 60, in __init__
  self.createPageGenerator(firstPageTitle), False, main_only)
File "scripts/misspelling.py", 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

Details

Reference
bz68665

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:40 AM
bzimport set Reference to bz68665.
jayvdb created this task.Jul 27 2014, 6:36 AM

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

https://gerrit.wikimedia.org/r/152810

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

https://gerrit.wikimedia.org/r/152810