py3: exception has not attr message

assuming e.message is the same as str(e)
This commit is contained in:
looooo 2018-07-01 23:08:34 +02:00
parent 1ffc7b96e9
commit 9a2e1e17b8
2 changed files with 2 additions and 2 deletions

View File

@ -110,4 +110,4 @@ class FCADLogger:
import PySide
PySide.QtGui.QMessageBox.critical(
FreeCADGui.getMainWindow(),'Assembly',e.message)
FreeCADGui.getMainWindow(),'Assembly',str(e))

View File

@ -110,7 +110,7 @@ class Solver(object):
msg += '\n{}, handle: {}'.format(cstrName(cstr),h)
logger.error(msg)
raise RuntimeError('Failed to solve {}: {}'.format(
objName(assembly),e.message))
objName(assembly),str(e)))
self.system.log('done solving')
touched = False