summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index b60c728..1da01cd 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -728,7 +728,11 @@ def update(args):
if hash != orig_hash:
cmd = ['bodhi', '--new', '--release', mymodule.branch, '--file',
'bodhi.template', nvr, '--username', args.user]
- pyfedpkg._run_command(cmd, shell=True)
+ try:
+ pyfedpkg._run_command(cmd, shell=True)
+ except pyfedpkg.FedpkgError, e:
+ log.error('Could not generate update request: %s' % e)
+ sys.exit(1)
else:
log.info('Bodhi update aborted!')