X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=python%2Fcumulus%2Frebuild_database.py;h=10a5f9a92c969d9088b464246a9272f303a200e6;hp=39bf7c11941479d2ced24c0a97281faf7e32beef;hb=710d0e959d9b79859df8568aac9741a79486d53a;hpb=ac4811d6590281d656431c2c9d8d22137fe5276f diff --git a/python/cumulus/rebuild_database.py b/python/cumulus/rebuild_database.py index 39bf7c1..10a5f9a 100755 --- a/python/cumulus/rebuild_database.py +++ b/python/cumulus/rebuild_database.py @@ -301,6 +301,9 @@ class DatabaseRebuilder(object): buf = fp.read(length) verifier.update(buf) + # Zero blocks get no checksums, so skip further processing on them. + if object is None: continue + if exact: csum = cumulus.ChecksumCreator(CHECKSUM_ALGORITHM) csum.update(buf)