FEM: run, use Error at the end of exception class
This commit is contained in:
@@ -95,7 +95,7 @@ def run_fem_solver(solver, working_dir=None):
|
||||
error_message
|
||||
)
|
||||
return
|
||||
except DirectoryDoesNotExist:
|
||||
except DirectoryDoesNotExistError:
|
||||
error_message = "Selected working directory doesn't exist."
|
||||
App.Console.PrintError(error_message + "\n")
|
||||
if App.GuiUp:
|
||||
@@ -195,7 +195,7 @@ def _getCustomDir(solver):
|
||||
def _getCustomBase(solver):
|
||||
path = settings.getCustomDir()
|
||||
if not os.path.isdir(path):
|
||||
raise DirectoryDoesNotExist("Invalid path")
|
||||
raise DirectoryDoesNotExistError("Invalid path")
|
||||
return path
|
||||
|
||||
|
||||
@@ -499,7 +499,7 @@ class MustSaveError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class DirectoryDoesNotExist(Exception):
|
||||
class DirectoryDoesNotExistError(Exception):
|
||||
pass
|
||||
|
||||
## @}
|
||||
|
||||
@@ -85,7 +85,7 @@ class ViewProxy(object):
|
||||
"This must be done because the location of the working "
|
||||
"directory is set to \"Beside .FCStd File\".")
|
||||
return False
|
||||
except run.DirectoryDoesNotExist:
|
||||
except run.DirectoryDoesNotExistError:
|
||||
QtGui.QMessageBox.critical(
|
||||
Gui.getMainWindow(),
|
||||
"Can't open Task Panel",
|
||||
|
||||
Reference in New Issue
Block a user