assert that only dicts get passed to _got_response()

This commit is contained in:
Zooko O'Whielacronx 2007-03-30 18:00:40 -07:00
parent 1a20e5d01b
commit 077eb7507c

View File

@ -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)