Skip to content

Commit

Permalink
Fix TypeError in 500 error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas authored Jan 19, 2024
1 parent 2e0d4c0 commit dc09e89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wagtailio/utils/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,6 @@ def error_404(request, exception=None):


def error_500(request):
return defaults.server_error(request, template="patterns/pages/errors/500.html")
return defaults.server_error(
request, template_name="patterns/pages/errors/500.html"
)

0 comments on commit dc09e89

Please sign in to comment.