summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--changelog.d/7563.misc1
-rw-r--r--synapse/app/generic_worker.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/7563.misc b/changelog.d/7563.misc
new file mode 100644
index 0000000000..ed271f9de8
--- /dev/null
+++ b/changelog.d/7563.misc
@@ -0,0 +1 @@
+Stop logging some expected HTTP request errors as exceptions.
diff --git a/synapse/app/generic_worker.py b/synapse/app/generic_worker.py
index 440341cb3c..5afe52f8d4 100644
--- a/synapse/app/generic_worker.py
+++ b/synapse/app/generic_worker.py
@@ -214,7 +214,7 @@ class KeyUploadServlet(RestServlet):
                     self.main_uri + request.uri.decode("ascii"), body, headers=headers
                 )
             except HttpResponseException as e:
-                raise e.to_synapse() from e
+                raise e.to_synapse_error() from e
             except RequestSendFailed as e:
                 raise SynapseError(502, "Failed to talk to master") from e