aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/serialhdl.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/serialhdl.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/serialhdl.py')
-rw-r--r--klippy/serialhdl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/serialhdl.py b/klippy/serialhdl.py
index d6179a4b..8b99cf25 100644
--- a/klippy/serialhdl.py
+++ b/klippy/serialhdl.py
@@ -69,7 +69,7 @@ class SerialReader:
self.serialport, self.baud, timeout=0)
else:
self.ser = open(self.serialport, 'rb+')
- except (OSError, serial.SerialException), e:
+ except (OSError, serial.SerialException) as e:
logging.warn("Unable to open port: %s" % (e,))
self.reactor.pause(starttime + 5.)
continue