mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-08 14:34:06 -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
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue