immutable: fix name change from BadOrMissingShareHash to BadOrMissingHash
authorZooko O'Whielacronx <zooko@zooko.com>
Fri, 2 Jan 2009 20:27:09 +0000 (13:27 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Fri, 2 Jan 2009 20:27:09 +0000 (13:27 -0700)
One of the instances of the name accidentally didn't get changed, and pyflakes noticed.  The new downloader/checker/verifier/repairer unit tests would also have noticed, but those tests haven't been rolled into a patch and applied to this repo yet...

src/allmydata/immutable/download.py

index fda9ef2a696d1e7d138688a9ddcb40e780a2724a..daf9052ce7c2fb571f675c540ff802799c545b62 100644 (file)
@@ -27,7 +27,7 @@ class UnsupportedErasureCodec(BadURIExtension):
     pass
 class BadCrypttextHashValue(IntegrityCheckReject):
     pass
-class BadOrMissingShareHash(IntegrityCheckReject):
+class BadOrMissingHash(IntegrityCheckReject):
     pass
 
 class DownloadStopped(Exception):
@@ -450,7 +450,7 @@ class ValidatedReadBucketProxy(log.PrefixingLogMixin):
             for i,h in enumerate(blockhashes):
                 lines.append("%3d: %s" % (i, base32.b2a_or_none(h)))
             log.msg(" blockhashes:\n" + "\n".join(lines) + "\n")
-            raise BadOrMissingShareHash(le)
+            raise BadOrMissingHash(le)
 
         # If we made it here, the block is good. If the hash trees didn't
         # like what they saw, they would have raised a BadHashError, causing