Merge pull request #15 from Lekensteyn/fixes

Fix Python 3 compatibility on error
This commit is contained in:
Peter Melnichenko 2016-03-26 16:29:44 +04:00
commit 3552b040a1

View File

@ -93,7 +93,7 @@ def exec_command(capture, *args):
return ""
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(
exception.returncode, command))