summaryrefslogtreecommitdiffstats
path: root/Lib/email
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/email')
-rw-r--r--Lib/email/Header.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/email/Header.py b/Lib/email/Header.py
index 66a18c8..624e7c4 100644
--- a/Lib/email/Header.py
+++ b/Lib/email/Header.py
@@ -361,6 +361,8 @@ class Header:
# =?charset2?b?SvxyZ2VuIEL2aW5n?="
chunks = []
for header, charset in newchunks:
+ if not header:
+ continue
if charset is None or charset.header_encoding is None:
s = header
else: