Bugs item #2827024, was opened at 2009-07-25 16:16 Message generated for change (Settings changed) made by siebrand You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2827024...
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: None Group: None
Status: Closed Resolution: Fixed
Priority: 8 Private: No Submitted By: Mauro (mauro742) Assigned to: Nobody/Anonymous (nobody) Summary: Bug in solveCaptcha (wikipedia.py)
Initial Comment: There's a bug in solveCaptcha function (wikipedia.py). Some scripts crash with this errors:
File "mypath/wikipedia.py", line 1439, in put newPage, self.site().getToken(sysop = sysop), sysop = sysop, botflag=botflag, maxTries=maxTries) File "mypath/wikipedia.py", line 1683, in _putPage solve = self.site().solveCaptcha(data) File "mypath/wikipedia.py", line 4602, in solveCaptcha if type(data) == dict: # API Mode result UnboundLocalError: local variable 'type' referenced before assignment
Pywikipedia [http] trunk/pywikipedia (r7093, 2009/07/25, 09:39:25) Python 2.5.1 (r251:54863, May 18 2007, 16:56:43) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)]
----------------------------------------------------------------------
Comment By: siebrand (siebrand)
Date: 2009-10-04 21:12
Message: Fixed in r7255 or r7283. Please update your bot.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2827024...