mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 16:36:20 +00:00
assert that only dicts get passed to _got_response()
This commit is contained in:
parent
1a20e5d01b
commit
077eb7507c
@ -187,6 +187,7 @@ class FileDownloader:
|
|||||||
return defer.DeferredList(dl)
|
return defer.DeferredList(dl)
|
||||||
|
|
||||||
def _got_response(self, buckets, connection):
|
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():
|
for sharenum, bucket in buckets.iteritems():
|
||||||
self._share_buckets.setdefault(sharenum, set()).add(bucket)
|
self._share_buckets.setdefault(sharenum, set()).add(bucket)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user