1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-11 20:58:19 +08:00

Merge pull request #1969 from Horizon101011/master

Fix: Regard all exception as failure
This commit is contained in:
Horizon101011
2022-12-09 18:50:07 +08:00
committed by GitHub

View File

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