From 4659f541493f1d4275868856dc198fedf5f296e5 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 21 Jan 2011 14:08:46 -0800 Subject: Catch all errors from watching tasks. (#670305) There are just too many error types here that can trip us up, so use the dreaded catchall. --- src/fedpkg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fedpkg.py b/src/fedpkg.py index 6699642..89e3ce5 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -340,9 +340,9 @@ def build(args): try: mymodule.kojisession.logout() return _watch_koji_tasks(mymodule.kojisession, [task_id], quiet=args.q) - except (koji.AuthError, koji.ServerOffline), e: + except: # We could get an auth error if credentials have expired - log.error('Could not watch build: %s' % e) + log.error('Could not watch build: %s' % sys.exec_info()[0]) sys.exit(1) def chainbuild(args): -- cgit