1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

[py3] Fixed reraising of exceptions

reraise with second argument to None is not supported.
This commit is contained in:
Claude Paroz
2012-08-11 23:43:45 +02:00
parent be7f1099c6
commit 15fffcc751
3 changed files with 3 additions and 3 deletions

View File

@@ -225,7 +225,7 @@ class BaseHandler(object):
# If Http500 handler is not installed, re-raise last exception
if resolver.urlconf_module is None:
six.reraise(exc_info[1], None, exc_info[2])
six.reraise(*exc_info)
# Return an HttpResponse that displays a friendly error message.
callback, param_dict = resolver.resolve500()
return callback(request, **param_dict)