Skip to content

Commit

Permalink
fix: decoding stderr after render layer fail (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi authored and petrasovaa committed Mar 11, 2020
1 parent 2509f45 commit f1c4be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/wxpython/core/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def _render(self, cmd, env):
p = grass.start_command(cmd[0], env=env, stderr=grass.PIPE, **cmd[1])
stdout, stderr = p.communicate()
if p.returncode:
return stderr
return grass.decode(stderr)
else:
return None

Expand Down

0 comments on commit f1c4be0

Please sign in to comment.