Closed sentry-io[bot] closed 7 months ago
@rtibbles It's just a simple fix according to me. We just have to check whether the response object has the render attribute or not before calling response.render()
in the render_and_cache
function. Could you please assign this issue to me?
Thanks :)
Yes, checking it has the attribute render and that it is callable should be good, see a similar example here https://github.com/learningequality/kolibri/blob/release-v0.16.x/kolibri/core/content/api.py#L135
AttributeError: 'HttpResponseNotAllowed' object has no attribute 'render'
Sentry Issue: KOLIBRI-BACKEND-2BQ