From 42a8353ecca6679139fd73645bb44a017524a6e9 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sun, 29 Sep 2019 21:40:27 +0100 Subject: [PATCH] Add timeout. --- depicts/mediawiki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depicts/mediawiki.py b/depicts/mediawiki.py index a8152b6..27ae4a9 100644 --- a/depicts/mediawiki.py +++ b/depicts/mediawiki.py @@ -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):