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
Browse files Browse the repository at this point in the history
Introduced in #7556
  • Loading branch information
richvdh committed May 22, 2020
1 parent f426969 commit ff8cde5
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 ff8cde5

Please sign in to comment.