6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2025-01-12 01:45:39 +00:00

Fix utils.check_output function

This was printing meaningless warning messages.
This commit is contained in:
Régis Behmo 2020-11-17 09:59:51 +01:00
parent 185ac3a7c4
commit be82964bdc

View File

@ -206,5 +206,7 @@ def check_output(*command):
click.echo(fmt.command(" ".join(command)))
try:
return subprocess.check_output(command)
finally:
fmt.echo_error("Command failed: {}".format(" ".join(command)))
except Exception as e:
raise exceptions.TutorError(
"Command failed: {}".format(" ".join(command))
) from e