mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-06 07:56:51 +00:00
Don't assume @cachedList function returns keys for everything
This commit is contained in:
parent
85d0bc3bdc
commit
8e254862f4
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ class CacheListDescriptor(object):
|
|||
# we can insert the new deferred into the cache.
|
||||
for arg in missing:
|
||||
observer = ret_d.observe()
|
||||
observer.addCallback(lambda r, arg: r[arg], arg)
|
||||
observer.addCallback(lambda r, arg: r.get(arg, None), arg)
|
||||
|
||||
observer = ObservableDeferred(observer)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue