Commit 4e036753 authored by John Tourtellott's avatar John Tourtellott

Use pybind11 to handle python exceptions

Since it provides a stack track
parent 208298da
......@@ -39,12 +39,12 @@ class Export(smtk.operation.Operation):
def name(self):
return "export ACE3P"
# NOTE: Here is where we could/should do semantic validation
def ableToOperate(self):
return smtk.operation.Operation.ableToOperate(self)
def operateInternal(self):
try:
success = ExportCMB(self.parameters(), self.log)
except:
smtk.ErrorMessage(self.log(), sys.exc_info()[0])
return self.createResult(smtk.operation.Operation.Outcome.FAILED)
success = ExportCMB(self.parameters(), self.log)
# Return with success
result = self.createResult(smtk.operation.Operation.Outcome.SUCCEEDED)
......
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