mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-22 06:04:03 -06:00
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>
This commit is contained in:
parent
d093200966
commit
1bc3e0a678
6 changed files with 15 additions and 15 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue