X Tutup
The Wayback Machine - https://web.archive.org/web/20250806230828/https://github.com/python/cpython/issues/134759
Skip to content

UnboundLocalError in email.message.Message.get_payload?#134759

@thib-d

Description

@thib-d

Bug report

Bug description:

    html_body = part.get_payload(decode=True).decode()
  File "/usr/local/lib/python3.8/email/message.py", line 282, in get_payload
    return quopri.decodestring(bpayload)

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtopic-emailtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup