diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-08-30 10:14:32 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-08-30 10:19:08 -0400 |
commit | f3edea29438a33888e7194141b67106b7c95f5ac (patch) | |
tree | 379f0cec16119fbace6a65d11b7ec3e20d247023 | |
parent | 40b7ba5111fefe34f7d251ecb7d6c5278784c912 (diff) | |
download | kutter-f3edea29438a33888e7194141b67106b7c95f5ac.tar.gz kutter-f3edea29438a33888e7194141b67106b7c95f5ac.tar.xz kutter-f3edea29438a33888e7194141b67106b7c95f5ac.zip |
toolhead: Forward original config error if raised in kinematics class
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/toolhead.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py index c8a48fa8..4999a1ec 100644 --- a/klippy/toolhead.py +++ b/klippy/toolhead.py @@ -243,6 +243,10 @@ class ToolHead: try: mod = importlib.import_module('kinematics.' + kin_name) self.kin = mod.load_kinematics(self, config) + except config.error as e: + raise + except self.printer.lookup_object('pins').error as e: + raise except: msg = "Error loading kinematics '%s'" % (kin_name,) logging.exception(msg) |