Skip to content

Commit

Permalink
raise exception if command execution fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed Nov 20, 2021
1 parent 035a8f3 commit 46b0613
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def getCommandOutput(command):
data = child.read()
err = child.close()
if err:
print('%s failed w/ exit code %d' % (command, err))
raise Exception('%s failed w/ exit code %d' % (command, err))
return data

##############################################
Expand Down

0 comments on commit 46b0613

Please sign in to comment.