mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 12:49: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,6 +204,7 @@ def get_api_response(request, url):
|
|||
except urls.exceptions.Resolver404:
|
||||
return http.HttpResponseNotFound()
|
||||
response = match.func(request, *match.args, **match.kwargs)
|
||||
if hasattr(response, "render"):
|
||||
response.render()
|
||||
return response
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue