mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #29140 -- Fixed EmailMessage crash when body is None.
This commit is contained in:
committed by
Tim Graham
parent
548f78ba46
commit
2691ed7ba1
@@ -231,7 +231,7 @@ class EmailMessage:
|
||||
self.reply_to = []
|
||||
self.from_email = from_email or settings.DEFAULT_FROM_EMAIL
|
||||
self.subject = subject
|
||||
self.body = body
|
||||
self.body = body or ''
|
||||
self.attachments = []
|
||||
if attachments:
|
||||
for attachment in attachments:
|
||||
|
||||
Reference in New Issue
Block a user