]> git.decadent.org.uk Git - dak.git/commitdiff
utils.create_hash()
authorJoerg Jaspert <joerg@debian.org>
Fri, 3 Apr 2009 22:35:58 +0000 (00:35 +0200)
committerJoerg Jaspert <joerg@debian.org>
Fri, 3 Apr 2009 22:35:58 +0000 (00:35 +0200)
if we cant open the file, don't try to parse it, but continue with the next

Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/utils.py

index c1be6b9014950f2ec798f09ee14b3aaac9599944..651e13ae7b6ac507ef468bda804df4f047a0b51c 100755 (executable)
@@ -260,6 +260,7 @@ def create_hash(where, files, hashname, hashfunc):
             file_handle = open_file(f)
         except CantOpenError:
             rejmsg.append("Could not open file %s for checksumming" % (f))
+            continue
 
         files[f][hash_key(hashname)] = hashfunc(file_handle)