Kaydet (Commit) 5fadc862 authored tarafından Jannis Leidel's avatar Jannis Leidel

Fixed #14851 -- Swapped an argument order to fix compatibility with Python<2.6.…

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
üst 29c4a578
......@@ -87,7 +87,7 @@ class AdminEmailHandler(logging.Handler):
stack_trace = 'No stack trace available'
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()
mail.mail_admins(subject, message, fail_silently=True,
html_message=html_message)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment