mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Fix: Regard all exception as failure
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user