aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/console.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/console.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/console.py')
-rwxr-xr-xklippy/console.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/console.py b/klippy/console.py
index 4d68b8de..1645a0be 100755
--- a/klippy/console.py
+++ b/klippy/console.py
@@ -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