1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-25 02:30:09 +08:00

Fix: Regard all exception as failure

This commit is contained in:
Horizon101011
2022-12-09 18:46:48 +08:00
parent a2e2c446be
commit 2a8af40fdc

View File

@@ -172,7 +172,7 @@ class ServerChecker:
try: try:
_ = requests.get('https://www.baidu.com', timeout=5) _ = requests.get('https://www.baidu.com', timeout=5)
network_available = True network_available = True
except (requests.exceptions.ConnectionError, requests.exceptions.ConnectTimeout): except Exception as e:
network_available = False network_available = False
if network_available: if network_available: