We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0d1674 commit 65e3cc4Copy full SHA for 65e3cc4
sdk/diffgram/core/core.py
@@ -265,8 +265,13 @@ def handle_errors(self,
265
"Rate Limited. Please add buffer between calls eg time.sleep(1). Otherwise, please try again later. Else contact us if this persists.")
266
267
if response.status_code == 500:
268
- raise Exception("Internal error, please try again later.")
269
-
+ try:
+ raise Exception(response.json()["log"]["error"])
270
+ except:
271
272
+ raise Exception(f"Internal error [500] {response.text}")
273
274
+ raise Exception(f"Internal server error: {response}")
275
raise_for_status = response.raise_for_status()
276
if raise_for_status:
277
Exception(raise_for_status)
0 commit comments