Opened 15 years ago
Closed 15 years ago
#14851 closed (fixed)
rev14844 breaks Django completely
| Reported by: | Matthias Kestenholz | Owned by: | nobody |
|---|---|---|---|
| Component: | Core (Other) | Version: | dev |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
After applying this patch it works again (Python 2.5).
diff --git a/django/utils/log.py b/django/utils/log.py
index d3c8e67..75422c7 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)
Note:
See TracTickets
for help on using tickets.
(In [14845]) Fixed #14851 -- Swapped an argument order to fix compatibility with Python<2.6. Thanks for report and patch, mk.