[dak/master 3/3] Improve exception handling in make-changelog.
Signed-off-by: Torsten Werner <twerner@debian.org>
---
dak/make_changelog.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dak/make_changelog.py b/dak/make_changelog.py
index f55f1dd..398c352 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):
--
1.7.2.5
Reply to: