From 69ce758822f102f1f7ffa3b4aa6c1ca09edea3cb Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Thu, 2 Dec 2010 15:40:56 -0800 Subject: Fix a traceback on expried credentials (#634946) --- src/fedpkg.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/fedpkg.py') 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: -- cgit