Skip to content

Commit ce2e238

Browse files
committed
Put exception arg only on tests
1 parent b238b15 commit ce2e238

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

readthedocs/proxito/tests/handler_404_urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
def map_proxito_path(view_func):
2222

2323
@wraps(view_func)
24-
def inner_view(request, *args, **kwargs):
24+
def inner_view(request, exception, *args, **kwargs):
2525
return view_func(
2626
request,
2727
*args,

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

0 commit comments

Comments
 (0)