summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2011-01-21 14:08:46 -0800
committerJesse Keating <jkeating@redhat.com>2011-01-21 14:08:46 -0800
commit4659f541493f1d4275868856dc198fedf5f296e5 (patch)
tree43cbdbc2079e2f7dc8f4ebd5ab90fc84b0420041
parent6438067bc69a60d28dbace9d2a400efbf5ba6cdc (diff)
downloadfedora-packager-4659f541493f1d4275868856dc198fedf5f296e5.zip
fedora-packager-4659f541493f1d4275868856dc198fedf5f296e5.tar.gz
fedora-packager-4659f541493f1d4275868856dc198fedf5f296e5.tar.xz
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-xsrc/fedpkg.py4
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):