From 077eb7507c947ec88007d25802b2d8f1d179a192 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Fri, 30 Mar 2007 18:00:40 -0700 Subject: [PATCH] assert that only dicts get passed to _got_response() --- src/allmydata/download.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/allmydata/download.py b/src/allmydata/download.py index eacc9eff..12cc03de 100644 --- a/src/allmydata/download.py +++ b/src/allmydata/download.py @@ -187,6 +187,7 @@ class FileDownloader: return defer.DeferredList(dl) def _got_response(self, buckets, connection): + _assert(isinstance(buckets, dict), buckets) # soon foolscap will check this for us with its DictOf schema constraint for sharenum, bucket in buckets.iteritems(): self._share_buckets.setdefault(sharenum, set()).add(bucket) -- 2.45.2