download: oops, NotEnoughHashesError comes from hashtree, not hashutil

This commit is contained in:
Brian Warner 2007-04-17 20:37:51 -07:00
parent b84d6ed07f
commit b76aa1ce17

View File

@ -91,7 +91,7 @@ class ValidatedBucket:
sh[0] = self._roothash # always use our own root, from the URI
sht = self.share_hash_tree
if sht.get_leaf_index(self.sharenum) not in sh:
raise hashutil.NotEnoughHashesError
raise hashtree.NotEnoughHashesError
sht.set_hashes(sh)
self._share_hash = sht.get_leaf(self.sharenum)