Nixic commited on
Commit
a468722
·
verified ·
1 Parent(s): d95578a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -134,7 +134,10 @@ 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.request.url)
139
+ print(response.request.headers)
140
+ print(response.request.body)
141
  print(response)
142
  return response.json()
143
  except requests.exceptions.JSONDecodeError as e: