diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-06-09 23:32:49 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-06-10 00:08:06 -0400 |
commit | 1bc3e0a678bd1b27264226c523841b60d7236a45 (patch) | |
tree | 278adb25abb014f3759316a9c228027d9d1a95e6 /klippy/homing.py | |
parent | d093200966912ca043b31b95681678a24fdc08b6 (diff) | |
download | kutter-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.py | 2 |
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() |