- added a traceback report in the TCL Shell for the errors that don't allow creation of an object; useful to trace exceptions/errors

- in case that the Toolchange X,Y parameter in Selected (or in Preferences) are deleted then the app will still do the job using the current coordinates for toolchange
- fixed an issue in camlib.CNCJob where tha variable self.toolchange_xy was used for 2 different purposes which created loss of information.
This commit is contained in:
Marius Stanciu
2019-01-30 23:17:27 +02:00
committed by Marius S
parent dbee97ccb9
commit 7e5ce009d8
10 changed files with 193 additions and 62 deletions

View File

@@ -2102,10 +2102,15 @@ class App(QtCore.QObject):
try:
return_value = initialize(obj, self)
except Exception as e:
if str(e) == "Empty Geometry":
self.inform.emit("[error_notcl] Object (%s) failed because: %s" % (kind, str(e)))
else:
self.inform.emit("[error] Object (%s) failed because: %s" % (kind, str(e)))
msg = "[error_notcl] An internal error has ocurred. See shell.\n"
msg += "Object (%s) failed because: %s \n\n" % (kind, str(e))
msg += traceback.format_exc()
self.inform.emit(msg)
# if str(e) == "Empty Geometry":
# self.inform.emit("[error_notcl] )
# else:
# self.inform.emit("[error] Object (%s) failed because: %s" % (kind, str(e)))
return "fail"
t2 = time.time()