summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/util/caches/descriptors.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/util/caches/descriptors.py b/synapse/util/caches/descriptors.py
index a9ea97fd46..675bfd5feb 100644
--- a/synapse/util/caches/descriptors.py
+++ b/synapse/util/caches/descriptors.py
@@ -178,9 +178,8 @@ class Cache(object):
         self.sequence += 1
         self.cache.del_multi(key)
 
-        val = self._pending_deferred_cache.pop(key, None)
-        if val is not None:
-            entry_dict, _ = val
+        entry_dict = self._pending_deferred_cache.pop(key, None)
+        if entry_dict is not None:
             for entry in iterate_tree_cache_entry(entry_dict):
                 entry.invalidate()