Skip to content

Commit 22c9dd8

Browse files
gpongelliLee-W
authored andcommitted
fix in case commitizen returns None
1 parent 5d1844a commit 22c9dd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commitizen/cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def run(cmd: str) -> Command:
2323
stdout, stderr = process.communicate()
2424
return_code = process.returncode
2525
return Command(
26-
stdout.decode(chardet.detect(stdout)["encoding"]),
27-
stderr.decode(chardet.detect(stderr)["encoding"]),
26+
stdout.decode(chardet.detect(stdout)["encoding"] or "utf-8"),
27+
stderr.decode(chardet.detect(stderr)["encoding"] or "utf-8"),
2828
stdout,
2929
stderr,
3030
return_code,

0 commit comments

Comments
 (0)