diff options
author | Jesse Keating <jkeating@redhat.com> | 2010-12-02 15:40:56 -0800 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-12-02 15:40:56 -0800 |
commit | 69ce758822f102f1f7ffa3b4aa6c1ca09edea3cb (patch) | |
tree | c1442ceb9670a52b720468c1f95d839ef0eee618 /src/fedpkg.py | |
parent | d437be9f4d04e6e5169dbf5e862672ecd2630c59 (diff) | |
download | fedora-packager-69ce758822f102f1f7ffa3b4aa6c1ca09edea3cb.tar.gz fedora-packager-69ce758822f102f1f7ffa3b4aa6c1ca09edea3cb.tar.xz fedora-packager-69ce758822f102f1f7ffa3b4aa6c1ca09edea3cb.zip |
Fix a traceback on expried credentials (#634946)
Diffstat (limited to 'src/fedpkg.py')
-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: |