Explorar o código

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

As the latter could result in unicode decode errors.

Closes #245.
Ask Solem %!s(int64=14) %!d(string=hai) anos
pai
achega
2c462cf537
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.