Skip to content

Commit

Permalink
549 orcid: add timeout for requests
Browse files Browse the repository at this point in the history
Signed-off-by: Micha Moskovic <[email protected]>
  • Loading branch information
michamos authored and david-caro committed May 2, 2018
1 parent d177e8b commit 65c4c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inspirehep/modules/orcid/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 65c4c83

Please sign in to comment.