~sircmpwn/dispatch.sr.ht

f49d82859d6bf4ceba5ec4fd8115c10bd4689ea0 — Drew DeVault 7 days ago 3b0eed3 0.15.30
Handle invalid encodings in emails more elegantly
1 files changed, 1 insertions(+), 1 deletions(-)

M dispatchsrht/tasks/gitlab/patch_to_gitlab_mr.py
M dispatchsrht/tasks/gitlab/patch_to_gitlab_mr.py => dispatchsrht/tasks/gitlab/patch_to_gitlab_mr.py +1 -1
@@ 295,7 295,7 @@ class PatchToGitLabMR(TaskDef):
                    content_type = part.get_content_type()
                    [charset] = part.get_charsets("utf-8")
                    if content_type == 'text/plain':
                        body = part.get_payload(decode=True).decode(charset)
                        body = part.get_payload(decode=True).decode(charset, errors="replace")
                        break
                details = body
            elif len(patches) == 1: