diff options
author | Erik Johnston <erik@matrix.org> | 2021-01-29 16:38:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 16:38:29 +0000 |
commit | f2c1560eca1e2160087a280261ca78d0708ad721 (patch) | |
tree | 3588043082a6da91569202eacff867be2d04a507 /synapse/federation/federation_client.py | |
parent | Fix Debian builds on Xenial (#9254) (diff) | |
download | synapse-f2c1560eca1e2160087a280261ca78d0708ad721.tar.xz |
Ratelimit invites by room and target user (#9258)
Diffstat (limited to 'synapse/federation/federation_client.py')
-rw-r--r-- | synapse/federation/federation_client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/federation/federation_client.py b/synapse/federation/federation_client.py index d330ae5dbc..40e1451201 100644 --- a/synapse/federation/federation_client.py +++ b/synapse/federation/federation_client.py @@ -810,7 +810,7 @@ class FederationClient(FederationBase): "User's homeserver does not support this room version", Codes.UNSUPPORTED_ROOM_VERSION, ) - elif e.code == 403: + elif e.code in (403, 429): raise e.to_synapse_error() else: raise |