Skip to content

Commit 8de1770

Browse files
humitosagjohnson
authored andcommitted
Remove invalid attribute exception (#3298)
* Remove invalid attribute `exception` https://docs.djangoproject.com/en/1.9/ref/views/#django.views.defaults.server_error This bug was introduced at 5e0f4c0#diff-f37089595920e35da08a9395c370515eR107 * Remove linting comments
1 parent 3e1651e commit 8de1770

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/core/views/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def divide_by_zero(request): # pylint: disable=unused-argument
106106
return old_div(1, 0)
107107

108108

109-
def server_error_500(request, exception, template_name='500.html'): # pylint: disable=unused-argument # noqa
109+
def server_error_500(request, template_name='500.html'):
110110
"""A simple 500 handler so we get media"""
111111
r = render_to_response(template_name,
112112
context_instance=RequestContext(request))

0 commit comments

Comments
 (0)