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