File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -45,18 +45,12 @@ The following exception classes are defined in the :mod:`email.errors` module:
45
45
46
46
.. exception :: MultipartConversionError()
47
47
48
- Raised when a payload is added to a :class: `~email.message.Message ` object
49
- using :meth: `add_payload `, but the payload is already a scalar and the
50
- message's :mailheader: `Content-Type ` main type is not either
51
- :mimetype: `multipart ` or missing. :exc: `MultipartConversionError ` multiply
52
- inherits from :exc: `MessageError ` and the built-in :exc: `TypeError `.
53
-
54
- Since :meth: `Message.add_payload ` is deprecated, this exception is rarely
55
- raised in practice. However the exception may also be raised if the
56
- :meth: `~email.message.Message.attach `
57
- method is called on an instance of a class derived from
48
+ Raised if the :meth: `~email.message.Message.attach ` method is called
49
+ on an instance of a class derived from
58
50
:class: `~email.mime.nonmultipart.MIMENonMultipart ` (e.g.
59
51
:class: `~email.mime.image.MIMEImage `).
52
+ :exc: `MultipartConversionError ` multiply
53
+ inherits from :exc: `MessageError ` and the built-in :exc: `TypeError `.
60
54
61
55
62
56
.. exception :: HeaderWriteError()
You can’t perform that action at this time.
0 commit comments