mirror of
https://github.com/W1NDes/M-AzurLaneAutoScript.git
synced 2026-05-14 07:08:04 +08:00
Merge pull request #1969 from Horizon101011/master
Fix: Regard all exception as failure
This commit is contained in:
commit
01b3f5e492
@ -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…
x
Reference in New Issue
Block a user