Add timeout.
This commit is contained in:
parent
3d63b6f9f6
commit
42a8353ecc
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ def api_call(params, api_url=wikidata_url):
|
|||
**params,
|
||||
}
|
||||
|
||||
r = requests.get(api_url, params=call_params)
|
||||
r = requests.get(api_url, params=call_params, timeout=2)
|
||||
return r
|
||||
|
||||
def get_entity(qid):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue