1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-24 00:55:56 +08:00

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

View File

@@ -28,9 +28,13 @@ class AzurLaneAutoScript:
@cached_property @cached_property
def device(self): def device(self):
try:
from module.device.device import Device from module.device.device import Device
device = Device(config=self.config) device = Device(config=self.config)
return device return device
except Exception as e:
logger.exception(e)
exit(1)
def run(self, command): def run(self, command):
try: try: