[issue29412] IndexError thrown on email.message.Message.get
Joel Uckelman
report at bugs.python.org
Tue Feb 7 11:04:35 EST 2017
Joel Uckelman added the comment:
Here's a patch, complete with tests.
If the value is all CFWS, then get_cfws(value)[1], which is what's left after the CFWS is extracted, is the empty string---which is why value[0] throws in this case.
----------
keywords: +patch
Added file: http://bugs.python.org/file46562/29412.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29412>
_______________________________________
More information about the Python-bugs-list
mailing list