Skip to content

Commit 5ff385f

Browse files
authored
Merge pull request #36 from flyingcircusio/decode-output-unicode
decode command output as unicode by default
2 parents 08ddce1 + a3397dd commit 5ff385f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/appenv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ def cmd(c, merge_stderr=True, quiet=False):
3838
return subprocess.check_output([c], **kwargs)
3939
except subprocess.CalledProcessError as e:
4040
print("{} returned with exit code {}".format(c, e.returncode))
41-
print(e.output.decode("ascii"))
42-
raise ValueError(e.output.decode("ascii"))
41+
print(e.output.decode("utf-8", "replace"))
42+
raise ValueError(e.output.decode("utf-8", "replace"))
4343

4444

4545
def get(host, path, f):

0 commit comments

Comments
 (0)