From b76aa1ce17e14c1ce63e8ebb8b1938205ba69a62 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Tue, 17 Apr 2007 20:37:51 -0700
Subject: [PATCH] download: oops, NotEnoughHashesError comes from hashtree, not
 hashutil

---
 src/allmydata/download.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/allmydata/download.py b/src/allmydata/download.py
index ddc3678b..32f95388 100644
--- a/src/allmydata/download.py
+++ b/src/allmydata/download.py
@@ -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)
 
-- 
2.45.2