WIP - adding request timeout

This commit is contained in:
Martyn Inglis
2017-04-04 16:05:25 +01:00
parent 734772c1eb
commit 57bd6494e1
4 changed files with 12 additions and 4 deletions

View File

@@ -55,7 +55,8 @@ def make_request(notification_type, provider, data, headers):
"POST",
api_call,
headers=headers,
data=data
data=data,
timeout=5
)
response.raise_for_status()
except RequestException as e: