From dc3e9c39780f54625413402104e9c38db60c03d6 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Wed, 23 Mar 2011 15:58:45 +0000 Subject: [PATCH] Improve exception handling in make-changelog. Signed-off-by: Torsten Werner --- dak/make_changelog.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dak/make_changelog.py b/dak/make_changelog.py index f55f1dd8..398c3526 100755 --- a/dak/make_changelog.py +++ b/dak/make_changelog.py @@ -225,9 +225,8 @@ def export_files(session, pool, clpool, temppath): os.link(version, suite) stats['created'] += 1 unpacked.cleanup() - except: - print 'make-changelog: unable to unpack %s_%s: %s' \ - % (package[0], package[1], output) + except Exception, e: + print 'make-changelog: unable to unpack %s\n%s' % (p, e) stats['errors'] += 1 for root, dirs, files in os.walk(clpool): -- 2.39.5