summary refs log tree commit diff
path: root/synapse/util/caches/cached_call.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/util/caches/cached_call.py')
-rw-r--r--synapse/util/caches/cached_call.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/util/caches/cached_call.py b/synapse/util/caches/cached_call.py
index 470f4f91a5..e325f44da3 100644
--- a/synapse/util/caches/cached_call.py
+++ b/synapse/util/caches/cached_call.py
@@ -76,6 +76,7 @@ class CachedCall(Generic[TV]):
 
         # Fire off the callable now if this is our first time
         if not self._deferred:
+            assert self._callable is not None
             self._deferred = run_in_background(self._callable)
 
             # we will never need the callable again, so make sure it can be GCed