diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-01-18 10:21:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 10:21:42 -0500 |
commit | 2b467d0b61ff094a305c2c92f0cec6ca04b5d16d (patch) | |
tree | c7fe36c8f01e070432f9802f19211c129b26eae4 /synapse/http/matrixfederationclient.py | |
parent | Fix bugs in handling clientRedirectUrl, and improve OIDC tests (#9127, #9128) (diff) | |
download | synapse-2b467d0b61ff094a305c2c92f0cec6ca04b5d16d.tar.xz |
Properly raise an exception when the body exceeds the max size. (#9145)
...instead of just creating the exception object and doing nothing with it.
Diffstat (limited to '')
-rw-r--r-- | synapse/http/matrixfederationclient.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py index b7103d6541..19293bf673 100644 --- a/synapse/http/matrixfederationclient.py +++ b/synapse/http/matrixfederationclient.py @@ -996,7 +996,7 @@ class MatrixFederationHttpClient: logger.warning( "{%s} [%s] %s", request.txn_id, request.destination, msg, ) - SynapseError(502, msg, Codes.TOO_LARGE) + raise SynapseError(502, msg, Codes.TOO_LARGE) except Exception as e: logger.warning( "{%s} [%s] Error reading response: %s", |