summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2011-02-08 16:31:47 -0700
committerJesse Keating <jkeating@redhat.com>2011-02-08 16:31:47 -0700
commit9934b23746043b66842ead8e998abcef6d27496a (patch)
treec4df1934ec0fc42bd0b7405e294c9745890ea035
parenta4d3e612a29d6905ca7604d4332f63164a769484 (diff)
downloadfedora-packager-9934b23746043b66842ead8e998abcef6d27496a.zip
fedora-packager-9934b23746043b66842ead8e998abcef6d27496a.tar.gz
fedora-packager-9934b23746043b66842ead8e998abcef6d27496a.tar.xz
Fix an traceback when failing to watch a build.
-rwxr-xr-xsrc/fedpkg.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index b4ff5d2..522718c 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -346,7 +346,8 @@ def build(args):
return _watch_koji_tasks(mymodule.kojisession, [task_id], quiet=args.q)
except:
# We could get an auth error if credentials have expired
- log.error('Could not watch build: %s' % sys.exec_info()[0])
+ # use exc_info here to get what kind of error this is
+ log.error('Could not watch build: %s' % sys.exc_info()[0])
sys.exit(1)
def chainbuild(args):