solver base, more fixes because of move error class

This commit is contained in:
Bernd Hahnebach
2019-09-10 18:18:56 +02:00
parent d7f5eeb8c5
commit ea643ec709

View File

@@ -29,6 +29,7 @@ __url__ = "http://www.freecadweb.org"
from PySide import QtGui
import FreeCAD as App
import femtools.femutils as femutils
from . import run
if App.GuiUp:
@@ -77,7 +78,7 @@ class ViewProxy(object):
def setEdit(self, vobj, mode=0):
try:
machine = run.getMachine(vobj.Object)
except run.MustSaveError:
except femutils.MustSaveError:
error_message = (
"Please save the file before opening the task panel. "
"This must be done because the location of the working "
@@ -90,7 +91,7 @@ class ViewProxy(object):
error_message
)
return False
except run.DirectoryDoesNotExistError:
except femutils.DirectoryDoesNotExistError:
error_message = "Selected working directory doesn't exist."
App.Console.PrintError(error_message + "\n")
QtGui.QMessageBox.critical(