Show More
@@ -458,7 +458,7 b' def headdecode(s):' | |||||
458 | try: |
|
458 | try: | |
459 | uparts.append(part.decode(charset)) |
|
459 | uparts.append(part.decode(charset)) | |
460 | continue |
|
460 | continue | |
461 | except UnicodeDecodeError: |
|
461 | except (UnicodeDecodeError, LookupError): | |
462 | pass |
|
462 | pass | |
463 | # On Python 3, decode_header() may return either bytes or unicode |
|
463 | # On Python 3, decode_header() may return either bytes or unicode | |
464 | # depending on whether the header has =?<charset>? or not |
|
464 | # depending on whether the header has =?<charset>? or not |
General Comments 0
You need to be logged in to leave comments.
Login now