aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorzachharris1 <69470481+zachharris1@users.noreply.github.com>2021-02-23 11:25:57 -0500
committerGitHub <noreply@github.com>2021-02-23 11:25:57 -0500
commit5fd44182206b7f708661351e6a330902075c6d10 (patch)
treee8c9158bcd7111707f48461765891c5099cefdd4
parent0a0f2e89de6cde25ba6ef104c64e30f92091e007 (diff)
downloadtap-google-sheets-5fd44182206b7f708661351e6a330902075c6d10.tar.gz
tap-google-sheets-5fd44182206b7f708661351e6a330902075c6d10.tar.zst
tap-google-sheets-5fd44182206b7f708661351e6a330902075c6d10.zip
made rate limit error messages more clear (#27)
* made rate limit error messages more clear * Revert "made rate limit error messages more clear" This reverts commit c7b57ab1cf7988a80bf3eb4347c93ac0dd3d93b4. * log message directly from google
-rw-r--r--tap_google_sheets/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tap_google_sheets/client.py b/tap_google_sheets/client.py
index 4f38352..bce00ce 100644
--- a/tap_google_sheets/client.py
+++ b/tap_google_sheets/client.py
@@ -230,7 +230,7 @@ class GoogleClient: # pylint: disable=too-many-instance-attributes
230 #Use retry functionality in backoff to wait and retry if 230 #Use retry functionality in backoff to wait and retry if
231 #response code equals 429 because rate limit has been exceeded 231 #response code equals 429 because rate limit has been exceeded
232 if response.status_code == 429: 232 if response.status_code == 429:
233 raise Server429Error() 233 raise Server429Error(response.json().get("error",{}).get("message", "Rate limit exceeded"))
234 234
235 if response.status_code != 200: 235 if response.status_code != 200:
236 raise_for_error(response) 236 raise_for_error(response)