summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-12-02 15:40:56 -0800
committerJesse Keating <jkeating@redhat.com>2010-12-02 15:40:56 -0800
commit69ce758822f102f1f7ffa3b4aa6c1ca09edea3cb (patch)
treec1442ceb9670a52b720468c1f95d839ef0eee618 /src
parentd437be9f4d04e6e5169dbf5e862672ecd2630c59 (diff)
downloadfedora-packager-69ce758822f102f1f7ffa3b4aa6c1ca09edea3cb.zip
fedora-packager-69ce758822f102f1f7ffa3b4aa6c1ca09edea3cb.tar.gz
fedora-packager-69ce758822f102f1f7ffa3b4aa6c1ca09edea3cb.tar.xz
Fix a traceback on expried credentials (#634946)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fedpkg.py7
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: