소스 검색

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.