From: Torsten Werner Date: Sun, 16 Jan 2011 10:19:12 +0000 (+0100) Subject: Handle (and re-raise) IOError in generate-releases. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1125aa02a426472b91c3a0ce48d402ddd125d3ed;p=dak Handle (and re-raise) IOError in generate-releases. Print the full filename before re-raising the Exception to aid debugging. Signed-off-by: Torsten Werner --- diff --git a/dak/generate_releases.py b/dak/generate_releases.py index 15ad1244..40046620 100755 --- a/dak/generate_releases.py +++ b/dak/generate_releases.py @@ -135,6 +135,9 @@ def print_md5sha_files (tree, files, hashop): except CantOpenError: print "ALERT: Couldn't open " + path + name + except IOError: + print "ALERT: IOError when reading %s" % (path + name) + raise else: out.write(" %s %8d %s\n" % (hashvalue, hashlen, name))