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:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user