Skip to content

Commit 9ab3ea7

Browse files
committed
Handle *args and **kwargs on view
We are setting this view as handler404 on tests, this view expects an extra arg (exception) https://docs.djangoproject.com/en/2.2/ref/views/#the-404-page-not-found-view (not sure why it worked before)
1 parent d01089f commit 9ab3ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/proxito/views/serve.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class ServeDocs(SettingsOverrideObject):
151151

152152
class ServeError404Base(ServeRedirectMixin, ServeDocsMixin, View):
153153

154-
def get(self, request, proxito_path, template_name='404.html'):
154+
def get(self, request, proxito_path, *args, template_name='404.html', **kwargs):
155155
"""
156156
Handler for 404 pages on subdomains.
157157

0 commit comments

Comments
 (0)