http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11134
Revision: 11134 Author: amir Date: 2013-02-27 10:39:55 +0000 (Wed, 27 Feb 2013) Log Message: ----------- fixing r11133
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2013-02-27 10:32:39 UTC (rev 11133) +++ trunk/pywikipedia/wikipedia.py 2013-02-27 10:39:55 UTC (rev 11134) @@ -4208,11 +4208,12 @@ retry_delay = 30 continue if 'error' in data: - errorCode = data['error']['code'] + errorCode = data['error']['info'] output(u'Got an unknown error when putting data: %s' %errorCode) else: if data['success'] == u"1": return 302, response.msg, data['success'] + return 302, response.msg, False def createitem(self, summary=None, watchArticle=False, minorEdit=True , token=None, newToken=False, sysop=False, captcha=None, botflag=True, maxTries=-1):