Add timeout.

This commit is contained in:
Edward Betts 2019-09-29 21:40:27 +01:00
parent 3d63b6f9f6
commit 42a8353ecc

View file

@ -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):