Skip to content

Commit

Permalink
FEM: Update except catch to python3
Browse files Browse the repository at this point in the history
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
  • Loading branch information
PrzemoF committed Nov 11, 2015
1 parent 1e8e087 commit 391cdf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Fem/FemTools.py
Expand Up @@ -411,7 +411,7 @@ def setup_ccx(self, ccx_binary=None, ccx_binary_sig="CalculiX"):
ccx_stdout, ccx_stderr = p.communicate()
if ccx_binary_sig in ccx_stdout:
self.ccx_binary_present = True
except OSError, e:
except OSError as e:
FreeCAD.Console.PrintError(e.message)
if e.errno == 2:
raise Exception("FEM: CalculiX binary ccx \'{}\' not found. Please set it in FEM preferences.".format(ccx_binary))
Expand Down

0 comments on commit 391cdf8

Please sign in to comment.