summary refs log tree commit diff
path: root/synapse/http/matrixfederationclient.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-22 17:29:20 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-22 17:29:20 +0100
commit53f6ab1c340fbe9d36945ebb1f24d129a9e6d13a (patch)
treefd25016a959356deef0f83a8df77c4d47730da10 /synapse/http/matrixfederationclient.py
parentMerge commit '9de6b9411' into anoa/dinsic_release_1_31_0 (diff)
parentProperly raise an exception when the body exceeds the max size. (#9145) (diff)
downloadsynapse-53f6ab1c340fbe9d36945ebb1f24d129a9e6d13a.tar.xz
Merge commit '2b467d0b6' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/http/matrixfederationclient.py')
-rw-r--r--synapse/http/matrixfederationclient.py2
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",