From 9894f5c7fb91429aff7a6008385343b6090bc7d7 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Thu, 26 Mar 2020 06:47:28 -0400 Subject: [PATCH] retry 500 response on discovery doc See example failure at: https://travis-ci.org/github/jay0lee/GAM/jobs/667171534#L879 --- src/gam.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gam.py b/src/gam.py index 1670072d..3bb46e15 100755 --- a/src/gam.py +++ b/src/gam.py @@ -752,7 +752,8 @@ def getService(api, http): controlflow.wait_on_failure(n, retries, str(e)) continue 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: controlflow.wait_on_failure(n, retries, str(e)) continue