Commit 1b2b535b authored by sumpfralle's avatar sumpfralle

softened some exceptions down to error messages

fixed one wording of an exception


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@908 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 71b09a91
......@@ -1135,7 +1135,7 @@ class ProjectGui:
# not initialized
pass
else:
raise ValueError("Invalid grid type: %d" % grid_type)
log.error("Invalid grid type: %d" % grid_type)
# show and hide all controls according to the current type
for key, grid_types in controls.iteritems():
obj = self.gui.get_object(key)
......@@ -1654,7 +1654,7 @@ class ProjectGui:
strategy = one_strategy
break
else:
raise ValueError("Invalid cutter selected")
raise ValueError("Invalid path strategy selected")
if strategy == "SurfaceStrategy" \
and get_obj("GridDirectionXY").get_active():
get_obj("GridDirectionX").set_active(True)
......@@ -3456,7 +3456,7 @@ class ProjectGui:
elif grid_type == GRID_TYPES["none"]:
pass
else:
raise ValueError("Invalid support grid type: %d" % grid_type)
log.error("Invalid support grid type: %d" % grid_type)
# calculation backend: ODE / None
if self.settings.get("enable_ode"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment