From 65c4c8333a06d0e112c76d0bf6473c7c6782618b Mon Sep 17 00:00:00 2001 From: Micha Moskovic Date: Mon, 30 Apr 2018 15:11:52 +0200 Subject: [PATCH] 549 orcid: add timeout for requests Signed-off-by: Micha Moskovic --- inspirehep/modules/orcid/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inspirehep/modules/orcid/api.py b/inspirehep/modules/orcid/api.py index 119ca48661..a31300469f 100644 --- a/inspirehep/modules/orcid/api.py +++ b/inspirehep/modules/orcid/api.py @@ -263,4 +263,4 @@ def _get_api(): client_key = app.config['ORCID_APP_CREDENTIALS']['consumer_key'] client_secret = app.config['ORCID_APP_CREDENTIALS']['consumer_secret'] sandbox = app.config['ORCID_SANDBOX'] - return MemberAPI(client_key, client_secret, sandbox) + return MemberAPI(client_key, client_secret, sandbox, timeout=30)