Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /