From 5fadc862007a967dcb66774a78fee7c4808c6a69 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Mon, 6 Dec 2010 21:54:49 +0000 Subject: [PATCH] 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 --- django/utils/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/utils/log.py b/django/utils/log.py index d3c8e67a30..75422c72ec 100644 --- a/django/utils/log.py +++ b/django/utils/log.py @@ -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)