Commit 43bd3159 by Sébastien Eustace

Fix UnicodeDecodeError on venv error

parent b6f4488e
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
### Fixed ### Fixed
- Fixed handling of `in` environment markers with commas. - Fixed handling of `in` environment markers with commas.
- Fixed a `UnicodeDecodeError` when an error occurs in venv.
## [0.10.1] - 2018-05-28 ## [0.10.1] - 2018-05-28
......
...@@ -23,7 +23,7 @@ class VenvCommandError(VenvError): ...@@ -23,7 +23,7 @@ class VenvCommandError(VenvError):
def __init__(self, e): # type: (CalledProcessError) -> None def __init__(self, e): # type: (CalledProcessError) -> None
message = 'Command {} errored with the following output: \n{}'.format( message = 'Command {} errored with the following output: \n{}'.format(
e.cmd, e.output.decode() e.cmd, decode(e.output)
) )
super(VenvCommandError, self).__init__(message) super(VenvCommandError, self).__init__(message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment