Submitter | Denis Laxalde |
---|---|
Date | Oct. 24, 2019, 3:30 p.m. |
Message ID | <d1382260a9c847b4650c.1571931036@steppe.local> |
Download | mbox | patch |
Permalink | /patch/42571/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/mail.py b/mercurial/mail.py --- a/mercurial/mail.py +++ b/mercurial/mail.py @@ -459,7 +459,7 @@ def headdecode(s): try: uparts.append(part.decode(charset)) continue - except UnicodeDecodeError: + except (UnicodeDecodeError, LookupError): pass # On Python 3, decode_header() may return either bytes or unicode # depending on whether the header has =?<charset>? or not