Skip to content

Commit

Permalink
diff returns non-zero if there are differences, i just want the output
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljoseph committed Sep 3, 2013
1 parent 6bc0d59 commit e97298d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion changes/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ def current_version(app_name):

def execute(commands, dry_run=True):
if not dry_run:
return subprocess.check_output(commands)
try:
return subprocess.check_output(commands)
except subprocess.CalledProcessError, e:
return '\n%s' % e.output
else:
log.debug('execute: %s' % commands)

Expand Down

0 comments on commit e97298d

Please sign in to comment.