0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-20 12:24:59 +01:00

Fix incorrect exception handling in KeyUploadServlet.on_POST (#7563)

Introduced in #7556
This commit is contained in:
Richard van der Hoff 2020-05-26 11:42:22 +01:00 committed by GitHub
parent 00db90f409
commit 04729b86f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/7563.misc Normal file
View file

@ -0,0 +1 @@
Stop logging some expected HTTP request errors as exceptions.

View file

@ -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