Commit 525b671a authored by sumpfralle's avatar sumpfralle

handle exceptions during toolpath generation gracefully


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@586 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent db6cb1e9
......@@ -44,6 +44,7 @@ import ConfigParser
import time
import logging
import datetime
import traceback
import os
import sys
......@@ -2410,8 +2411,14 @@ class ProjectGui:
# run the toolpath generation
self.update_progress_bar("Starting the toolpath generation")
try:
toolpath = pycam.Toolpath.Generator.generate_toolpath_from_settings(
self.model, toolpath_settings, callback=draw_callback)
except:
log.error("An unexpected exception occoured: please send the " \
+ "text below to the developers of PyCAM. Thanks a lot!\n" \
+ traceback.format_exc())
return False
log.info("Toolpath generation time: %f" % (time.time() - start_time))
......
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