From 2e1a8878d56601f8b4c9e840c3f47f6a7b6f58b6 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Wed, 5 May 2021 16:46:33 +0100 Subject: Fix default --- synapse/events/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'synapse') diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py index eb279579e7..c82e0d53ec 100644 --- a/synapse/events/__init__.py +++ b/synapse/events/__init__.py @@ -239,8 +239,8 @@ class _Signatures: def get_dict(self) -> JsonDict: return _decode_dict(self._signatures_bytes) - def get(self, server_name): - return self.get_dict().get(server_name) + def get(self, server_name, default=None): + return self.get_dict().get(server_name, default) def update(self, other: Union[JsonDict, "_Signatures"]): if isinstance(other, _Signatures): -- cgit 1.4.1