Fixed some missing exception capturing
(cherry picked from commit 2f86a6a)
This commit is contained in:
parent
91163dc4f4
commit
5c8d9007f6
1 changed files with 2 additions and 2 deletions
|
|
@ -408,7 +408,7 @@ class PrinterProfileManager(object):
|
||||||
for path in (("volume", "width"), ("volume", "depth"), ("volume", "height"), ("extruder", "nozzleDiameter")):
|
for path in (("volume", "width"), ("volume", "depth"), ("volume", "height"), ("extruder", "nozzleDiameter")):
|
||||||
try:
|
try:
|
||||||
convert_value(profile, path, float)
|
convert_value(profile, path, float)
|
||||||
except:
|
except Exception as e:
|
||||||
self._logger.warn("Profile has invalid value for path {path!r}: {msg}".format(path=".".join(path), msg=str(e)))
|
self._logger.warn("Profile has invalid value for path {path!r}: {msg}".format(path=".".join(path), msg=str(e)))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
@ -416,7 +416,7 @@ class PrinterProfileManager(object):
|
||||||
for path in (("axes", "x", "inverted"), ("axes", "y", "inverted"), ("axes", "z", "inverted")):
|
for path in (("axes", "x", "inverted"), ("axes", "y", "inverted"), ("axes", "z", "inverted")):
|
||||||
try:
|
try:
|
||||||
convert_value(profile, path, bool)
|
convert_value(profile, path, bool)
|
||||||
except:
|
except Exception as e:
|
||||||
self._logger.warn("Profile has invalid value for path {path!r}: {msg}".format(path=".".join(path), msg=str(e)))
|
self._logger.warn("Profile has invalid value for path {path!r}: {msg}".format(path=".".join(path), msg=str(e)))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue