Skip to content
Snippets Groups Projects
Commit d0ce8317 authored by Dan Michael O. Heggø's avatar Dan Michael O. Heggø
Browse files

Retry on internal_api_error_DBQueryError

parent d19e7199
No related branches found
No related tags found
No related merge requests found
...@@ -191,7 +191,7 @@ class Site(object): ...@@ -191,7 +191,7 @@ class Site(object):
self.hasmsg = 'message' in userinfo self.hasmsg = 'message' in userinfo
self.logged_in = 'anon' not in userinfo self.logged_in = 'anon' not in userinfo
if 'error' in info: if 'error' in info:
if info['error']['code'] in (u'internal_api_error_DBConnectionError', ): if info['error']['code'] in (u'internal_api_error_DBConnectionError', u'internal_api_error_DBQueryError'):
self.wait(token) self.wait(token)
return False return False
if '*' in info['error']: if '*' in info['error']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment