1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

[2251] Update FDEVID Timeout

This commit is contained in:
David Sangrey 2024-06-06 17:56:19 -04:00
parent 3209b4e1fb
commit 76c94bfdb9
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC

View File

@ -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:
local_content = f.read()
response = requests.get(url)
response = requests.get(url, timeout=20)
if response.status_code != 200:
if not silent:
logger.error(f'Failed to download {file}! Unable to continue.')