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

@@ -97,7 +97,8 @@ class FiretextClient(SmsClient):
response = request(
"POST",
self.url,
data=data
data=data,
timeout=60
)
response.raise_for_status()
try: