summaryrefslogtreecommitdiffstats
path: root/Lib/email/errors.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2011-06-22 17:47:53 (GMT)
committerR David Murray <rdmurray@bitdance.com>2011-06-22 17:47:53 (GMT)
commit749073af13fcb389059b182290f5cbc953222681 (patch)
tree9da44b14da5872581f1655829522841dd59e1060 /Lib/email/errors.py
parent11cc475be79c123be0e587b12662cc70b7518348 (diff)
downloadcpython-749073af13fcb389059b182290f5cbc953222681.zip
cpython-749073af13fcb389059b182290f5cbc953222681.tar.gz
cpython-749073af13fcb389059b182290f5cbc953222681.tar.bz2
#1874: detect invalid multipart CTE and report it as a defect.
Diffstat (limited to 'Lib/email/errors.py')
-rw-r--r--Lib/email/errors.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/email/errors.py b/Lib/email/errors.py
index c2ea7d4..c04deb4 100644
--- a/Lib/email/errors.py
+++ b/Lib/email/errors.py
@@ -55,3 +55,6 @@ class MalformedHeaderDefect(MessageDefect):
class MultipartInvariantViolationDefect(MessageDefect):
"""A message claimed to be a multipart but no subparts were found."""
+
+class InvalidMultipartContentTransferEncodingDefect(MessageDefect):
+ """An invalid content transfer encoding was set on the multipart itself."""