We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e7c832 commit 5b44cd6Copy full SHA for 5b44cd6
1 file changed
Lib/email/FeedParser.py
@@ -365,10 +365,11 @@ def _parsegen(self):
365
# Any CRLF at the front of the epilogue is not technically part of
366
# the epilogue. Also, watch out for an empty string epilogue,
367
# which means a single newline.
368
- firstline = epilogue[0]
369
- bolmo = NLCRE_bol.match(firstline)
370
- if bolmo:
371
- epilogue[0] = firstline[len(bolmo.group(0)):]
+ if epilogue:
+ firstline = epilogue[0]
+ bolmo = NLCRE_bol.match(firstline)
+ if bolmo:
372
+ epilogue[0] = firstline[len(bolmo.group(0)):]
373
self._cur.epilogue = EMPTYSTRING.join(epilogue)
374
return
375
# Otherwise, it's some non-multipart type, so the entire rest of the
0 commit comments