Skip to content

Commit

Permalink
FEM: bare Python exceptions, fix the Import ones
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Jun 30, 2019
1 parent 757fa06 commit e31b086
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Fem/femsolver/fenics/fenics_tools.py
Expand Up @@ -30,7 +30,7 @@

try:
import fenics
except:
except ImportError:
FreeCAD.Console.PrintError("No Fenics modules found, please install them.")
else:
import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Fem/femtest/testcommon.py
Expand Up @@ -105,7 +105,7 @@ def test_pyimport_all_FEM_modules(
fcc_print('Try importing {0} ...'.format(mod))
try:
im = __import__('{0}'.format(mod))
except:
except ImportError:
im = False
if not im:
# to get an error message what was going wrong
Expand Down

0 comments on commit e31b086

Please sign in to comment.