From 5a0cec9717d94cc1c726a150596467ed894ed51a Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 28 Feb 2013 22:44:07 +0100 Subject: Fix a traceback due to a sleekxmpp API change - remove the help message for people still using the old custom sleekxmpp repo --- src/xhtml.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/xhtml.py') diff --git a/src/xhtml.py b/src/xhtml.py index 1c9c20e7..ce53029e 100644 --- a/src/xhtml.py +++ b/src/xhtml.py @@ -193,6 +193,8 @@ def get_body_from_message_stanza(message): if config.get('enable_xhtml_im', 'true') == 'true': xhtml_body = message['html']['body'] if xhtml_body: + if isinstance(xhtml_body, str): + xhtml_body = ET.fromstring(xhtml_body) content = xhtml_to_poezio_colors(xhtml_body) content = content if content else message['body'] return content or " " -- cgit v1.2.3