mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 03:06:33 +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)
|
||||
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user