[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] utils.create_hash()



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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/daklib/utils.py b/daklib/utils.py
index c1be6b9..651e13a 100755
--- a/daklib/utils.py
+++ b/daklib/utils.py
@@ -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)
 
-- 
1.5.6.5


Reply to: