Opened 8 years ago
Last modified 8 years ago
#28042 closed Bug
mimetype Fallback for attachments passed to EmailMessage.__init__ removed — at Initial Version
Description ¶
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/IPython/core/interactiveshell.py", line 2881, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-43-5151166d7cfd>", line 1, in <module>
m.message()
File "/usr/local/lib/python3.4/dist-packages/django/core/mail/message.py", line 302, in message
msg = self._create_message(msg)
File "/usr/local/lib/python3.4/dist-packages/django/core/mail/message.py", line 399, in _create_message
return self._create_attachments(msg)
File "/usr/local/lib/python3.4/dist-packages/django/core/mail/message.py", line 412, in _create_attachments
msg.attach(self._create_attachment(*attachment))
File "/usr/local/lib/python3.4/dist-packages/django/core/mail/message.py", line 450, in _create_attachment
attachment = self._create_mime_attachment(content, mimetype)
File "/usr/local/lib/python3.4/dist-packages/django/core/mail/message.py", line 422, in _create_mime_attachment
basetype, subtype = mimetype.split('/', 1)
AttributeError: 'NoneType' object has no attribute 'split'