Skip to content

Commit

Permalink
Remove invalid attribute exception (#3298)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
humitos authored and agjohnson committed Nov 22, 2017
1 parent 3e1651e commit 8de1770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs/core/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def divide_by_zero(request): # pylint: disable=unused-argument
return old_div(1, 0)


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

0 comments on commit 8de1770

Please sign in to comment.