mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-08 12:27:33 +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
|
||||
def device(self):
|
||||
from module.device.device import Device
|
||||
device = Device(config=self.config)
|
||||
return device
|
||||
try:
|
||||
from module.device.device import Device
|
||||
device = Device(config=self.config)
|
||||
return device
|
||||
except Exception as e:
|
||||
logger.exception(e)
|
||||
exit(1)
|
||||
|
||||
def run(self, command):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user