From 2dbd1132fe98867265147b676b95453fce291f99 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Sat, 23 Nov 2019 05:18:49 -0800 Subject: [PATCH] common.googleapis: Fix a bug in retrying failed access token get Seems that this was never fixed when the code was moved. --- common/common/googleapis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/common/googleapis.py b/common/common/googleapis.py index b4c028a..d7aa292 100644 --- a/common/common/googleapis.py +++ b/common/common/googleapis.py @@ -57,7 +57,7 @@ class GoogleAPIClient(object): gevent.spawn_later(expires_in - self.ACCESS_TOKEN_REFRESH_TIME_BEFORE_EXPIRY, self.get_access_token) except Exception: logging.exception("Failed to fetch access token, retrying") - self.wait(self.ACCESS_TOKEN_ERROR_RETRY_INTERVAL) + gevent.sleep(self.ACCESS_TOKEN_ERROR_RETRY_INTERVAL) else: break