mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 13:04:05 -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
|
@ -78,7 +78,7 @@ class KeyboardReader:
|
|||
return None
|
||||
try:
|
||||
msg = self.ser.msgparser.create_command(line)
|
||||
except msgproto.error, e:
|
||||
except msgproto.error as e:
|
||||
self.output("Error: %s" % (str(e),))
|
||||
return None
|
||||
return msg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue