mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Fix: Handle Runtime error raised by uiautoamtor2
This commit is contained in:
@@ -142,6 +142,11 @@ def handle_adb_error(e):
|
||||
# the device is still available, but it needs to be disconnected and re-connected.
|
||||
logger.error(e)
|
||||
return True
|
||||
elif 'is offline' in text:
|
||||
# RuntimeError: USB device 127.0.0.1:7555 is offline
|
||||
# Raised by uiautomator2 when current adb service is killed by another version of adb service.
|
||||
logger.error(e)
|
||||
return True
|
||||
elif 'unknown host service' in text:
|
||||
# AdbError(unknown host service)
|
||||
# Another version of ADB service started, current ADB service has been killed.
|
||||
|
||||
Reference in New Issue
Block a user