Skip to content

Commit 475c67f

Browse files
Update core.py
1 parent ac22294 commit 475c67f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: sdk/diffgram/core/core.py

+2
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ def handle_errors(self,
243243
raise (Exception("404 Not Found" + response.text))
244244

245245
if response.status_code == 429:
246+
if response.headers:
247+
print(response.headers) # for rate limit and reset values
246248
raise Exception(
247249
"Rate Limited. Please add buffer between calls eg time.sleep(1). Otherwise, please try again later. Else contact us if this persists.")
248250

0 commit comments

Comments
 (0)