adb异常处理优化
This commit is contained in:
parent
1b8855572b
commit
2f6ab0874c
1 changed files with 2 additions and 1 deletions
|
@ -82,8 +82,9 @@ class ADB:
|
|||
adb_client.connect(config.conf.adb, 10)
|
||||
except Exception as e:
|
||||
raise EmulatorError(e)
|
||||
|
||||
self._adb_device = AdbDevice(adb_client, config.conf.adb)
|
||||
if self._adb_device is None:
|
||||
raise EmulatorError("设备未连接")
|
||||
self.check_device_status()
|
||||
return self._adb_device
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue