diff options
author | Erik Johnston <erik@matrix.org> | 2021-05-05 16:46:33 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2021-05-05 16:46:33 +0100 |
commit | 2e1a8878d56601f8b4c9e840c3f47f6a7b6f58b6 (patch) | |
tree | 7e8c4591a0caf29bb81707e517b38f432c291fdd /synapse | |
parent | Make origin optional (diff) | |
download | synapse-2e1a8878d56601f8b4c9e840c3f47f6a7b6f58b6.tar.xz |
Fix default
Diffstat (limited to '')
-rw-r--r-- | synapse/events/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): |