Skip to content

Commit

Permalink
Fix timeout warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dchassin committed Oct 2, 2024
1 parent f39879a commit 604d471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qdox.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

def _get_json(*args,**kwargs):
try:
with requests.get(*args,**kwargs) as res:
with requests.get(*args,**kwargs,timeout=60) as res:
if res.status_code == 200:
return json.loads(res.text)
return {"error": "request failed", "message": f"StatusCode:{res.status_code}"}
Expand Down

0 comments on commit 604d471

Please sign in to comment.