Fixed #14851 -- Swapped an argument order to fix compatibility with Python<2.6. Thanks for report and patch, mk.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14845 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
29c4a578af
commit
5fadc86200
|
@ -87,7 +87,7 @@ class AdminEmailHandler(logging.Handler):
|
||||||
stack_trace = 'No stack trace available'
|
stack_trace = 'No stack trace available'
|
||||||
|
|
||||||
message = "%s\n\n%s" % (stack_trace, request_repr)
|
message = "%s\n\n%s" % (stack_trace, request_repr)
|
||||||
reporter = ExceptionReporter(request, *exc_info, is_email=True)
|
reporter = ExceptionReporter(request, is_email=True, *exc_info)
|
||||||
html_message = reporter.get_traceback_html()
|
html_message = reporter.get_traceback_html()
|
||||||
mail.mail_admins(subject, message, fail_silently=True,
|
mail.mail_admins(subject, message, fail_silently=True,
|
||||||
html_message=html_message)
|
html_message=html_message)
|
||||||
|
|
Loading…
Reference in New Issue