Skip to content
Snippets Groups Projects
Commit 87acd8fb authored by Gergely Polonkai's avatar Gergely Polonkai
Browse files

Fix to appease the PEP8 dragon

parent a5377472
No related branches found
No related tags found
No related merge requests found
......@@ -404,7 +404,9 @@ def _parse_json(request):
try:
content = json.loads(request.content.read())
if type(content) != dict:
raise SynapseError(400, "Content must be a JSON object.", errcode=Codes.BAD_JSON)
raise SynapseError(
400, "Content must be a JSON object.", errcode=Codes.BAD_JSON
)
return content
except ValueError:
raise SynapseError(400, "Content not JSON.", errcode=Codes.NOT_JSON)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment