From 1125aa02a426472b91c3a0ce48d402ddd125d3ed Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Sun, 16 Jan 2011 11:19:12 +0100 Subject: [PATCH] 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 --- dak/generate_releases.py | 3 +++ 1 file changed, 3 insertions(+) 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)) -- 2.39.5