diff options
author | Jesse Keating <jkeating@redhat.com> | 2011-01-21 14:08:46 -0800 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2011-01-21 14:08:46 -0800 |
commit | 4659f541493f1d4275868856dc198fedf5f296e5 (patch) | |
tree | 43cbdbc2079e2f7dc8f4ebd5ab90fc84b0420041 | |
parent | 6438067bc69a60d28dbace9d2a400efbf5ba6cdc (diff) | |
download | fedora-packager-4659f541493f1d4275868856dc198fedf5f296e5.tar.gz fedora-packager-4659f541493f1d4275868856dc198fedf5f296e5.tar.xz fedora-packager-4659f541493f1d4275868856dc198fedf5f296e5.zip |
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.
-rwxr-xr-x | src/fedpkg.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |