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

Commit

Permalink
Don't try to serialise a non-hashable obj
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Sep 13, 2022
1 parent 2db33d3 commit f6209b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions synapse/rest/media/v1/upload_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ async def _async_render_POST(self, request: SynapseRequest) -> None:
# the default 404, as that would just be confusing.
raise SynapseError(400, "Bad content")

logger.info("Uploaded content with URI %r", content_uri)
logger.info(f"Uploaded content with URI {content_uri}")

respond_with_json(request, 200, {"content_uri": content_uri}, send_cors=True)
respond_with_json(
request, 200, {"content_uri": str(content_uri)}, send_cors=True
)

0 comments on commit f6209b4

Please sign in to comment.