aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-06-09 23:32:49 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-06-10 00:08:06 -0400
commit1bc3e0a678bd1b27264226c523841b60d7236a45 (patch)
tree278adb25abb014f3759316a9c228027d9d1a95e6 /klippy/mcu.py
parentd093200966912ca043b31b95681678a24fdc08b6 (diff)
downloadkutter-1bc3e0a678bd1b27264226c523841b60d7236a45.tar.gz
kutter-1bc3e0a678bd1b27264226c523841b60d7236a45.tar.xz
kutter-1bc3e0a678bd1b27264226c523841b60d7236a45.zip
klippy: Use newer "except XYZError as e" python syntax
Use the newer syntax for python exceptions. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index 5d63af72..e22f6bb6 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -457,7 +457,7 @@ class MCU:
self._emergency_stop_cmd = self.lookup_command("emergency_stop")
try:
self._reset_cmd = self.lookup_command("reset")
- except self.serial.msgparser.error, e:
+ except self.serial.msgparser.error as e:
pass
self.register_msg(self.handle_shutdown, 'shutdown')
self.register_msg(self.handle_shutdown, 'is_shutdown')