common.googleapis: Fix a bug in retrying failed access token get

Seems that this was never fixed when the code was moved.
pull/163/head
Mike Lang 5 years ago
parent 47584821f9
commit 2dbd1132fe

@ -57,7 +57,7 @@ class GoogleAPIClient(object):
gevent.spawn_later(expires_in - self.ACCESS_TOKEN_REFRESH_TIME_BEFORE_EXPIRY, self.get_access_token) gevent.spawn_later(expires_in - self.ACCESS_TOKEN_REFRESH_TIME_BEFORE_EXPIRY, self.get_access_token)
except Exception: except Exception:
logging.exception("Failed to fetch access token, retrying") 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: else:
break break

Loading…
Cancel
Save