Skip to content

Commit

Permalink
manubot#337 make timeout configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
xihh87 committed Jun 15, 2022
1 parent 63452fa commit 4641de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manubot/cite/zotero.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def web_query(url: str, timeout=3) -> ZoteroData:
headers = {"User-Agent": get_manubot_user_agent(), "Content-Type": "text/plain"}
params = {"single": 1}
api_url = f"{base_url}/web"
response = requests.post(api_url, params=params, headers=headers, data=str(url), timeout=3)
response = requests.post(api_url, params=params, headers=headers, data=str(url), timeout=timeout)
try:
zotero_data = response.json()
except Exception as error:
Expand Down

0 comments on commit 4641de8

Please sign in to comment.