mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-19 02:17:38 +03:00
[2251] Update FDEVID Timeout
This commit is contained in:
parent
3209b4e1fb
commit
76c94bfdb9
@ -54,7 +54,7 @@ def check_for_fdev_updates(silent: bool = False, local: bool = False) -> None:
|
|||||||
with open(fdevid_file, newline='', encoding='utf-8') as f:
|
with open(fdevid_file, newline='', encoding='utf-8') as f:
|
||||||
local_content = f.read()
|
local_content = f.read()
|
||||||
|
|
||||||
response = requests.get(url)
|
response = requests.get(url, timeout=20)
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
if not silent:
|
if not silent:
|
||||||
logger.error(f'Failed to download {file}! Unable to continue.')
|
logger.error(f'Failed to download {file}! Unable to continue.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user