]> git.decadent.org.uk Git - dak.git/commitdiff
Improve exception handling in make-changelog.
authorTorsten Werner <twerner@debian.org>
Wed, 23 Mar 2011 15:58:45 +0000 (15:58 +0000)
committerTorsten Werner <twerner@debian.org>
Wed, 23 Mar 2011 15:58:45 +0000 (15:58 +0000)
Signed-off-by: Torsten Werner <twerner@debian.org>
dak/make_changelog.py

index f55f1dd8d380673f1bfe26dad39dd6e9555f8442..398c3526a54c4f3721be5b7362afc3769c87a3be 100755 (executable)
@@ -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):