summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index a81665c..4c5a465 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -402,10 +402,14 @@ def clone(args):
except:
log.debug('Could not read Fedora cert, using login name')
args.user = os.getlogin()
- if args.branches:
- pyfedpkg.clone_with_dirs(args.module[0], args.user)
- else:
- pyfedpkg.clone(args.module[0], args.user, args.path, args.branch)
+ try:
+ if args.branches:
+ pyfedpkg.clone_with_dirs(args.module[0], args.user)
+ else:
+ pyfedpkg.clone(args.module[0], args.user, args.path, args.branch)
+ except pyfedpkg.FedpkgError, e:
+ log.error('Could not clone: %s' % e)
+ sys.exit(1)
def commit(args):
try: