From 424215a0c300c4a27bceb3e9e76fc8d6b5b4d56b Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Fri, 1 May 2020 15:36:02 +0100 Subject: [PATCH] Fix cache: config block parsing --- synapse/config/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/config/cache.py b/synapse/config/cache.py index 7a7dbb3d80..403893a3d3 100644 --- a/synapse/config/cache.py +++ b/synapse/config/cache.py @@ -93,7 +93,7 @@ class CacheConfig(Config): ) self.cache_factors = {} # type: Dict[str, float] - cache_config = config.get("caches", {}) + cache_config = config.get("caches") or {} self.global_factor = cache_config.get( "global_factor", properties.default_factor_size )