mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Regard all exception as failure
This commit is contained in:
parent
a2e2c446be
commit
2a8af40fdc
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user