Fix to appease the PEP8 dragon

pull/4/merge
Gergely Polonkai 9 years ago
parent a53774721a
commit 87acd8fb07
  1. 4
      synapse/rest/client/v1/login.py

@ -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)

Loading…
Cancel
Save