Skip to content
Snippets Groups Projects
Unverified Commit fdeb5ef8 authored by Agate's avatar Agate :speech_balloon:
Browse files

Fixed 500 error when federation is disabled and application+json is requested

parent 33006342
Branches
Tags
No related merge requests found
...@@ -204,6 +204,7 @@ def get_api_response(request, url): ...@@ -204,6 +204,7 @@ def get_api_response(request, url):
except urls.exceptions.Resolver404: except urls.exceptions.Resolver404:
return http.HttpResponseNotFound() return http.HttpResponseNotFound()
response = match.func(request, *match.args, **match.kwargs) response = match.func(request, *match.args, **match.kwargs)
if hasattr(response, "render"):
response.render() response.render()
return response return response
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment