mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
Python 3.5 fix
This commit is contained in:
@@ -890,7 +890,7 @@ def waitOnFailure(n, retries, errMsg):
|
|||||||
|
|
||||||
def checkGAPIError(e, soft_errors=False, silent_errors=False, retryOnHttpError=False, service=None):
|
def checkGAPIError(e, soft_errors=False, silent_errors=False, retryOnHttpError=False, service=None):
|
||||||
try:
|
try:
|
||||||
error = json.loads(e.content)
|
error = json.loads(e.content.decode('utf-8'))
|
||||||
except ValueError:
|
except ValueError:
|
||||||
eContent = e.content.decode(UTF8) if isinstance(e.content, bytes) else e.content
|
eContent = e.content.decode(UTF8) if isinstance(e.content, bytes) else e.content
|
||||||
if (e.resp['status'] == '503') and (eContent == 'Quota exceeded for the current request'):
|
if (e.resp['status'] == '503') and (eContent == 'Quota exceeded for the current request'):
|
||||||
|
|||||||
Reference in New Issue
Block a user