summary refs log tree commit diff
path: root/synapse/http/client.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-01-18 10:21:42 -0500
committerGitHub <noreply@github.com>2021-01-18 10:21:42 -0500
commit2b467d0b61ff094a305c2c92f0cec6ca04b5d16d (patch)
treec7fe36c8f01e070432f9802f19211c129b26eae4 /synapse/http/client.py
parentFix bugs in handling clientRedirectUrl, and improve OIDC tests (#9127, #9128) (diff)
downloadsynapse-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/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/http/client.py b/synapse/http/client.py
index df498c8645..37ccf5ab98 100644
--- a/synapse/http/client.py
+++ b/synapse/http/client.py
@@ -724,7 +724,7 @@ class SimpleHttpClient:
                 read_body_with_max_size(response, output_stream, max_size)
             )
         except BodyExceededMaxSize:
-            SynapseError(
+            raise SynapseError(
                 502,
                 "Requested file is too large > %r bytes" % (max_size,),
                 Codes.TOO_LARGE,