Revision: 4580 Author: btongminh Date: 2007-11-21 09:50:45 +0000 (Wed, 21 Nov 2007)
Log Message: ----------- Catch internal_api_error_DBConnectionError
Modified Paths: -------------- trunk/pywikipedia/commonsdelinker/checkusage.py
Modified: trunk/pywikipedia/commonsdelinker/checkusage.py =================================================================== --- trunk/pywikipedia/commonsdelinker/checkusage.py 2007-11-21 09:48:11 UTC (rev 4579) +++ trunk/pywikipedia/commonsdelinker/checkusage.py 2007-11-21 09:50:45 UTC (rev 4580) @@ -145,6 +145,8 @@ res.close() if 'error' in data: + if data['error']['code'] == u'internal_api_error_DBConnectionError': + return self.query_api(host, path, **kwargs) raise wikipedia.Error(data['error']['code'], data['error']['info'])
pywikipedia-l@lists.wikimedia.org