~sircmpwn/dispatch.sr.ht

e34fa0c7bcebd64bd3b9d0fb9f0ab0a6bdf02612 — Drew DeVault 7 days ago f49d828 master 0.15.31
More crappy Unicode handling
1 files changed, 2 insertions(+), 2 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 +2 -2
@@ 339,7 339,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
        ident = in_reply_to.split("@")[0]
        merge_id = int(ident.split(".")[-2])


@@ 404,7 404,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

                context = []