Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def query(payload: Dict[str, Any], api_url: str) -> Optional[Dict[str, Any]]:
|
|
134 |
if response.status_code == 429:
|
135 |
raise Exception("Too many requests. Please try again later.")
|
136 |
|
137 |
-
response.raise_for_status()
|
138 |
print(response)
|
139 |
return response.json()
|
140 |
except requests.exceptions.JSONDecodeError as e:
|
|
|
134 |
if response.status_code == 429:
|
135 |
raise Exception("Too many requests. Please try again later.")
|
136 |
|
137 |
+
# response.raise_for_status()
|
138 |
print(response)
|
139 |
return response.json()
|
140 |
except requests.exceptions.JSONDecodeError as e:
|