https://bugzilla.wikimedia.org/show_bug.cgi?id=68665
Bug ID: 68665
Summary: misspelling breaks when script is not configured for
the site
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: General
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
$ 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
--
You are receiving this mail because:
You are the assignee for the bug.