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: ...@@ -1135,7 +1135,7 @@ class ProjectGui:
# not initialized # not initialized
pass pass
else: 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 # show and hide all controls according to the current type
for key, grid_types in controls.iteritems(): for key, grid_types in controls.iteritems():
obj = self.gui.get_object(key) obj = self.gui.get_object(key)
...@@ -1654,7 +1654,7 @@ class ProjectGui: ...@@ -1654,7 +1654,7 @@ class ProjectGui:
strategy = one_strategy strategy = one_strategy
break break
else: else:
raise ValueError("Invalid cutter selected") raise ValueError("Invalid path strategy selected")
if strategy == "SurfaceStrategy" \ if strategy == "SurfaceStrategy" \
and get_obj("GridDirectionXY").get_active(): and get_obj("GridDirectionXY").get_active():
get_obj("GridDirectionX").set_active(True) get_obj("GridDirectionX").set_active(True)
...@@ -3456,7 +3456,7 @@ class ProjectGui: ...@@ -3456,7 +3456,7 @@ class ProjectGui:
elif grid_type == GRID_TYPES["none"]: elif grid_type == GRID_TYPES["none"]:
pass pass
else: else:
raise ValueError("Invalid support grid type: %d" % grid_type) log.error("Invalid support grid type: %d" % grid_type)
# calculation backend: ODE / None # calculation backend: ODE / None
if self.settings.get("enable_ode"): 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