From: Joerg Jaspert Date: Fri, 3 Apr 2009 22:35:58 +0000 (+0200) Subject: utils.create_hash() X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=b6ab6dd2d291f00ef2a5bca1ecad6191182b6505;p=dak.git 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 --- diff --git a/daklib/utils.py b/daklib/utils.py index c1be6b90..651e13ae 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)