Skip to content

Commit

Permalink
Gmsh: fix unicode treatment in error path
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jun 19, 2016
1 parent 8675605 commit 0de6494
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meshpy/gmsh.py
Expand Up @@ -176,6 +176,9 @@ def __enter__(self):
cmdline, working_dir)
logger.info("return from gmsh")

stdout = stdout.decode("utf-8")
stderr = stderr.decode("utf-8")

if stderr and "error" in stderr.lower():
msg = "gmsh execution failed with message:\n\n"
if stdout:
Expand Down

0 comments on commit 0de6494

Please sign in to comment.