diff options
-rwxr-xr-x | src/fedpkg.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py index 772e86f..ff94f0e 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -337,7 +337,12 @@ def build(args): mymodule.kojisession.logout() return # pass info off to our koji task watcher - return _watch_koji_tasks(mymodule.kojisession, [task_id], quiet=args.q) + try: + return _watch_koji_tasks(mymodule.kojisession, [task_id], quiet=args.q) + except koji.AuthError, e: + # We could get an auth error if credentials have expired + log.error('Could not watch build: %s' % e) + sys.exit(1) def chainbuild(args): try: |