Browse Source

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 years ago
parent
commit
2c462cf537
1 changed files with 1 additions and 1 deletions
  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.