diff options
Diffstat (limited to 'src/formbox.py')
-rwxr-xr-x[-rw-r--r--] | src/formbox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/formbox.py b/src/formbox.py index beb9246..2136a0c 100644..100755 --- a/src/formbox.py +++ b/src/formbox.py @@ -39,8 +39,8 @@ def get_body(message): for payload in map(get_body, message.get_payload()): if payload is not None: return payload elif message.get_content_type() in ('text/markdown', 'text/plain'): - return sanitise(linkify(markdown(message.get_payload(decode=True), - output_format='html5'))) + payload = message.get_payload(decode=True).decode() + return sanitise(linkify(markdown(payload, output_format='html5'))) return None |