Opt: Show error when device connection failed

This commit is contained in:
18870 2021-10-24 15:14:10 +08:00
parent 2122852ba5
commit 5df441f5d1

10
alas.py
View File

@ -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: