fix: add explicit default to httpx.timeout (#28836)
This commit is contained in:
@@ -58,7 +58,7 @@ class VersionApi(Resource):
|
|||||||
response = httpx.get(
|
response = httpx.get(
|
||||||
check_update_url,
|
check_update_url,
|
||||||
params={"current_version": args["current_version"]},
|
params={"current_version": args["current_version"]},
|
||||||
timeout=httpx.Timeout(connect=3, read=10),
|
timeout=httpx.Timeout(timeout=10.0, connect=3.0),
|
||||||
)
|
)
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
logger.warning("Check update version error: %s.", str(error))
|
logger.warning("Check update version error: %s.", str(error))
|
||||||
|
|||||||
Reference in New Issue
Block a user