aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index cb07658f..2facba0a 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -614,8 +614,11 @@ class MCU:
and not os.path.exists(self._serialport)):
# Try toggling usb power
self._check_restart("enable power")
- self._serial.connect()
- self._clocksync.connect(self._serial)
+ try:
+ self._serial.connect()
+ self._clocksync.connect(self._serial)
+ except serialhdl.error as e:
+ raise error(str(e))
msgparser = self._serial.get_msgparser()
name = self._name
log_info = [