api_particulier: add 5s timeout on all requests (#44685)

This commit is contained in:
Thomas NOËL 2020-07-01 16:13:40 +02:00 committed by Thomas NOËL
parent 029e107533
commit 21432b360f
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ class APIParticulier(BaseResource):
response = self.requests.get(
url,
headers=headers,
timeout=5,
**kwargs)
except requests.RequestException as e:
raise APIError(