toolhead: Forward original config error if raised in kinematics class
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
40b7ba5111
commit
f3edea2943
|
@ -243,6 +243,10 @@ class ToolHead:
|
||||||
try:
|
try:
|
||||||
mod = importlib.import_module('kinematics.' + kin_name)
|
mod = importlib.import_module('kinematics.' + kin_name)
|
||||||
self.kin = mod.load_kinematics(self, config)
|
self.kin = mod.load_kinematics(self, config)
|
||||||
|
except config.error as e:
|
||||||
|
raise
|
||||||
|
except self.printer.lookup_object('pins').error as e:
|
||||||
|
raise
|
||||||
except:
|
except:
|
||||||
msg = "Error loading kinematics '%s'" % (kin_name,)
|
msg = "Error loading kinematics '%s'" % (kin_name,)
|
||||||
logging.exception(msg)
|
logging.exception(msg)
|
||||||
|
|
Loading…
Reference in New Issue