Skip to content

Commit

Permalink
adding time out option
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazztok45 committed Dec 29, 2024
1 parent c8346ae commit b03b11f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zbmath_rest2oai/getAsXml.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def api_doc_endpoint(page):
return dict_res
def final_xml2(api_source, prefix):
headers = {'Accept': 'application/json'}
r = requests.get(api_source, headers=headers)
r = requests.get(api_source, headers=headers, timeout=(10, 60))
if r.status_code == 404:
json = r.json()
if json['status']['execution'].startswith('Entry not found!'):
Expand Down

0 comments on commit b03b11f

Please sign in to comment.