FEM: run, use Error at the end of exception class

This commit is contained in:
Bernd Hahnebach
2019-03-26 21:34:53 +01:00
committed by wmayer
parent 76555307f9
commit c7bbfca564
2 changed files with 4 additions and 4 deletions

View File

@@ -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
## @}