Merge pull request #15 from Lekensteyn/fixes
Fix Python 3 compatibility on error
This commit is contained in:
commit
3552b040a1
@ -93,7 +93,7 @@ def exec_command(capture, *args):
|
|||||||
return ""
|
return ""
|
||||||
|
|
||||||
if not live_output:
|
if not live_output:
|
||||||
sys.stdout.write(exception.output)
|
sys.stdout.write(exception.output.decode("UTF-8"))
|
||||||
|
|
||||||
sys.exit("Error: got exitcode {} from command {}".format(
|
sys.exit("Error: got exitcode {} from command {}".format(
|
||||||
exception.returncode, command))
|
exception.returncode, command))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user