mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-05 05:11:35 +00:00
retry 500 response on discovery doc
See example failure at: https://travis-ci.org/github/jay0lee/GAM/jobs/667171534#L879
This commit is contained in:
@@ -752,7 +752,8 @@ def getService(api, http):
|
|||||||
controlflow.wait_on_failure(n, retries, str(e))
|
controlflow.wait_on_failure(n, retries, str(e))
|
||||||
continue
|
continue
|
||||||
controlflow.system_error_exit(17, str(e))
|
controlflow.system_error_exit(17, str(e))
|
||||||
except (http_client.ResponseNotReady, socket.error) as e:
|
except (http_client.ResponseNotReady, socket.error,
|
||||||
|
googleapiclient.errors.HttpError) as e:
|
||||||
if n != retries:
|
if n != retries:
|
||||||
controlflow.wait_on_failure(n, retries, str(e))
|
controlflow.wait_on_failure(n, retries, str(e))
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user