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

Commit a395632

Browse files
committed
Don't try to serialise a non-hashable obj
1 parent 79d7c68 commit a395632

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

synapse/rest/media/v1/upload_resource.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ async def _async_render_POST(self, request: SynapseRequest) -> None:
101101
# the default 404, as that would just be confusing.
102102
raise SynapseError(400, "Bad content")
103103

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

106-
respond_with_json(request, 200, {"content_uri": content_uri}, send_cors=True)
106+
respond_with_json(
107+
request, 200, {"content_uri": str(content_uri)}, send_cors=True
108+
)

0 commit comments

Comments
 (0)