aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/homing.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/homing.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/homing.py')
-rw-r--r--klippy/homing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/homing.py b/klippy/homing.py
index 1e06f0b9..7d4cfb5b 100644
--- a/klippy/homing.py
+++ b/klippy/homing.py
@@ -43,7 +43,7 @@ class Homing:
for s, es, last_pos in endstops:
try:
es.home_wait()
- except es.error, e:
+ except es.error as e:
raise EndstopError("Failed to home stepper %s: %s" % (
s.name, str(e)))
post_home_pos = s.mcu_stepper.get_mcu_position()