]> git.decadent.org.uk Git - dak.git/commitdiff
Handle (and re-raise) IOError in generate-releases.
authorTorsten Werner <twerner@debian.org>
Sun, 16 Jan 2011 10:19:12 +0000 (11:19 +0100)
committerTorsten Werner <twerner@debian.org>
Sun, 16 Jan 2011 10:19:12 +0000 (11:19 +0100)
Print the full filename before re-raising the Exception to aid debugging.

Signed-off-by: Torsten Werner <twerner@debian.org>
dak/generate_releases.py

index 15ad1244163c511632ff283144026318171b95d3..4004662035ceb9abd89fa034bceab82c864537f4 100755 (executable)
@@ -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))