Skip to content

Commit

Permalink
FEM: fix missing error classes
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Dec 16, 2019
1 parent d662c20 commit 91535bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mod/Fem/femsolver/run.py
Expand Up @@ -239,7 +239,7 @@ def _getBesideBase(solver):
"Can't start Solver",
error_message
)
raise MustSaveError()
raise femutils.MustSaveError()
return path


Expand All @@ -264,7 +264,7 @@ def _getCustomBase(solver):
"Can't start Solver",
error_message
)
raise DirectoryDoesNotExistError("Invalid path")
raise femutils.DirectoryDoesNotExistError("Invalid path")
return path


Expand Down
1 change: 1 addition & 0 deletions src/Mod/Fem/femtools/femutils.py
Expand Up @@ -355,6 +355,7 @@ def check_working_dir(wdir):
return False


# TODO: move in own error module
class MustSaveError(Exception):
pass

Expand Down

0 comments on commit 91535bc

Please sign in to comment.