download: oops, NotEnoughHashesError comes from hashtree, not hashutil
authorBrian Warner <warner@allmydata.com>
Wed, 18 Apr 2007 03:37:51 +0000 (20:37 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 18 Apr 2007 03:37:51 +0000 (20:37 -0700)
src/allmydata/download.py

index ddc3678b7023db88bb58d236c1f036abc3097130..32f95388ecf9166b81c7aadefd9b4394fdf29db1 100644 (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)