From: Torsten Werner Date: Wed, 23 Mar 2011 15:58:45 +0000 (+0000) Subject: Improve exception handling in make-changelog. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc3e9c39780f54625413402104e9c38db60c03d6;p=dak Improve exception handling in make-changelog. Signed-off-by: Torsten Werner --- 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):