Преглед на файлове

Error email body now uses repr(exc) instead of str(exc).

As the latter could result in unicode decode errors.

Closes #245.
Ask Solem преди 14 години
родител
ревизия
2c462cf537
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      celery/worker/job.py

+ 1 - 1
celery/worker/job.py

@@ -26,7 +26,7 @@ EMAIL_SIGNATURE_SEP = "-- "
 
 #: format string for the body of an error e-mail.
 TASK_ERROR_EMAIL_BODY = """
-Task %%(name)s with id %%(id)s raised exception:\n%%(exc)s
+Task %%(name)s with id %%(id)s raised exception:\n%%(exc)r
 
 
 Task was called with args: %%(args)s kwargs: %%(kwargs)s.