diff --git a/allmydata/bucketstore.py b/allmydata/bucketstore.py index 0348b5acc..84b7083a3 100644 --- a/allmydata/bucketstore.py +++ b/allmydata/bucketstore.py @@ -41,6 +41,7 @@ class BucketStore(service.MultiService, Referenceable): # for now, only returns those created by this process, in this run bucket = self._buckets.get(verifierid) if bucket: + precondition(bucket.is_complete()) return BucketReader(bucket) elif os.path.exists(self._get_bucket_dir(verifierid)): bucket_dir = self._get_bucket_dir(verifierid)