We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac22294 commit 475c67fCopy full SHA for 475c67f
sdk/diffgram/core/core.py
@@ -243,6 +243,8 @@ def handle_errors(self,
243
raise (Exception("404 Not Found" + response.text))
244
245
if response.status_code == 429:
246
+ if response.headers:
247
+ print(response.headers) # for rate limit and reset values
248
raise Exception(
249
"Rate Limited. Please add buffer between calls eg time.sleep(1). Otherwise, please try again later. Else contact us if this persists.")
250
0 commit comments