Bugs item #3400040, was opened at 2011-08-29 06:44 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3400040...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Mikko Silvonen (silvonen)
Assigned to: xqt (xqt)
Summary: interwiki.py crashes with UnboundLocalError in i18n.py
Initial Comment:
interwiki.py -autonomous -lang:fi -namespace:0 -start:"Vuori"
... No changes needed on page [[it:Montagna]] No changes needed on page [[am:???]] Dump fi (wikipedia) appended. Traceback (most recent call last): File "interwiki.py", line 2542, in <module> main() File "interwiki.py", line 2516, in main bot.run() File "interwiki.py", line 2256, in run self.queryStep() File "interwiki.py", line 2234, in queryStep subj.finish(self) File "interwiki.py", line 1657, in finish = compareLanguages(old, new, insite=site) File "interwiki.py", line 2301, in compareLanguages mcomment += i18n.twtranslate(insite.lang, commentname) % changes File "c:\svn\pywikipedia\pywikibot\i18n.py", line 258, in twtranslate trans = transdict[lang][twtitle] UnboundLocalError: local variable 'lang' referenced before assignment
python version.py
Pywikipedia [http] trunk/pywikipedia (r9468, 2011/08/28, 16:41:00) Python 2.5.4 (r254:67916, Jan 29 2009, 12:02:11) [MSC v.1310 32 bit (Intel)] config-settings: use_api = True use_api_login = True unicode test: ok
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2011-08-29 07:11
Message: fixed in r9470
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3400040...