From 9934b23746043b66842ead8e998abcef6d27496a Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 8 Feb 2011 16:31:47 -0700 Subject: Fix an traceback when failing to watch a build. --- src/fedpkg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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): -- cgit