mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-09 03:44:23 +00:00
immutable: fix name change from BadOrMissingShareHash to BadOrMissingHash
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...
This commit is contained in:
parent
c72be1c553
commit
a52b5542e9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user