mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Opt: Show error when device connection failed
This commit is contained in:
parent
2122852ba5
commit
5df441f5d1
10
alas.py
10
alas.py
@ -28,9 +28,13 @@ class AzurLaneAutoScript:
|
|||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def device(self):
|
def device(self):
|
||||||
from module.device.device import Device
|
try:
|
||||||
device = Device(config=self.config)
|
from module.device.device import Device
|
||||||
return device
|
device = Device(config=self.config)
|
||||||
|
return device
|
||||||
|
except Exception as e:
|
||||||
|
logger.exception(e)
|
||||||
|
exit(1)
|
||||||
|
|
||||||
def run(self, command):
|
def run(self, command):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user