mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 21:19:15 +02:00
Fixed 500 error when federation is disabled and application+json is requested
This commit is contained in:
parent
3300634297
commit
fdeb5ef8ae
1 changed files with 2 additions and 1 deletions
|
@ -204,7 +204,8 @@ 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)
|
||||||
response.render()
|
if hasattr(response, "render"):
|
||||||
|
response.render()
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue