decrice timeout
This commit is contained in:
parent
f642bac31a
commit
e2f61be92c
2 changed files with 2 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ REST_FRAMEWORK = {
|
|||
# ],
|
||||
'DEFAULT_THROTTLE_RATES': {
|
||||
'otp_min': '1/min',
|
||||
'otp_day': '5/day',
|
||||
'otp_day': '20/day',
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ def send_sms(phone_number, message):
|
|||
'Accept': 'application/json',
|
||||
}
|
||||
|
||||
response_object = requests.post(url, headers=headers, json=body, timeout=30)
|
||||
response_object = requests.post(url, headers=headers, json=body, timeout=10)
|
||||
print(response_object.text)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue