Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix incorrect exception handling in KeyUploadServlet.on_POST (#7563)
Browse files Browse the repository at this point in the history
Introduced in #7556
  • Loading branch information
richvdh authored May 26, 2020
1 parent 00db90f commit 04729b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/7563.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Stop logging some expected HTTP request errors as exceptions.
2 changes: 1 addition & 1 deletion synapse/app/generic_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ async def on_POST(self, request, device_id):
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

Expand Down

0 comments on commit 04729b8

Please sign in to comment.