mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix incorrect exception handling in KeyUploadServlet.on_POST (#7563)
Introduced in #7556
This commit is contained in:
parent
00db90f409
commit
04729b86f8
1
changelog.d/7563.misc
Normal file
1
changelog.d/7563.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Stop logging some expected HTTP request errors as exceptions.
|
@ -214,7 +214,7 @@ class KeyUploadServlet(RestServlet):
|
|||||||
self.main_uri + request.uri.decode("ascii"), body, headers=headers
|
self.main_uri + request.uri.decode("ascii"), body, headers=headers
|
||||||
)
|
)
|
||||||
except HttpResponseException as e:
|
except HttpResponseException as e:
|
||||||
raise e.to_synapse() from e
|
raise e.to_synapse_error() from e
|
||||||
except RequestSendFailed as e:
|
except RequestSendFailed as e:
|
||||||
raise SynapseError(502, "Failed to talk to master") from e
|
raise SynapseError(502, "Failed to talk to master") from e
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user