Increase timeout for connections to API
This commit is contained in:
parent
2c3a3cdf52
commit
74c4ce3ec7
|
@ -124,8 +124,8 @@ def call_api(
|
||||||
data=None,
|
data=None,
|
||||||
files=None,
|
files=None,
|
||||||
):
|
):
|
||||||
# Set the connect timeout to 1 seconds but extremely long (48 hour) data timeout
|
# Set the connect timeout to 2 seconds but extremely long (48 hour) data timeout
|
||||||
timeout = (1.05, 172800)
|
timeout = (2.05, 172800)
|
||||||
|
|
||||||
# Craft the URI
|
# Craft the URI
|
||||||
uri = "{}://{}{}{}".format(
|
uri = "{}://{}{}{}".format(
|
||||||
|
|
Loading…
Reference in New Issue