summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-03-29 11:12:00 +0100
committerErik Johnston <erik@matrix.org>2021-03-29 11:12:00 +0100
commitf83ad8dd2d54284c990829421c75442d116f6fc4 (patch)
tree4bf8c7c4200035be4bec465ea49ea0e9c2e8bd13
parentIgnore _JoinedHostsCache as it includes DataStore (diff)
downloadsynapse-f83ad8dd2d54284c990829421c75442d116f6fc4.tar.xz
Fixup
-rw-r--r--synapse/util/caches/lrucache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/caches/lrucache.py b/synapse/util/caches/lrucache.py
index 2bdadfa40c..9051d3bb4e 100644
--- a/synapse/util/caches/lrucache.py
+++ b/synapse/util/caches/lrucache.py
@@ -67,7 +67,7 @@ class _Node:
         self.value = value
         self.callbacks = callbacks
 
-        if asizeof and not value.__class__.endswith("_JoinedHostsCache"):
+        if asizeof and not (value.__class__ and value.__class__.endswith("_JoinedHostsCache"):
             self.memory = asizeof.asizeof(key) + asizeof.asizeof(value)
         else:
             self.memory = 0