mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-25 03:32:38 +08:00
Fix: [ALAS] Ignore errors in brute force connect
This commit is contained in:
@@ -783,7 +783,7 @@ class Connection(ConnectionAttr):
|
|||||||
self.detect_device()
|
self.detect_device()
|
||||||
if self.serial != before:
|
if self.serial != before:
|
||||||
return True
|
return True
|
||||||
run_once(self.check_mumu_bridge_network())()
|
run_once(self.check_mumu_bridge_network)()
|
||||||
# No such device
|
# No such device
|
||||||
logger.warning('No such device exists, please restart the emulator or set a correct serial')
|
logger.warning('No such device exists, please restart the emulator or set a correct serial')
|
||||||
raise EmulatorNotRunningError
|
raise EmulatorNotRunningError
|
||||||
@@ -799,7 +799,10 @@ class Connection(ConnectionAttr):
|
|||||||
serial_list (list[str]):
|
serial_list (list[str]):
|
||||||
"""
|
"""
|
||||||
def connect(s):
|
def connect(s):
|
||||||
msg = self.adb_client.connect(s)
|
try:
|
||||||
|
msg = self.adb_client.connect(s)
|
||||||
|
except Exception:
|
||||||
|
return ''
|
||||||
logger.info(msg)
|
logger.info(msg)
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user