Commit 78b3933e authored by Link Mauve's avatar Link Mauve Committed by Link Mauve

Stop displaying the traceback when /xhtml fails.

Also make the except more restrictive.

Fixes #3514.
parent 1c5836a9
Pipeline #3514 passed with stages
in 6 minutes and 17 seconds
......@@ -647,9 +647,9 @@ class ChatTab(Tab):
body = xhtml.clean_text(
xhtml.xhtml_to_poezio_colors(arg, force=True))
except xml.sax._exceptions.SAXParseException:
self.core.information('Could not send custom xhtml', 'Error')
log.error('/xhtml: Unable to send custom xhtml', exc_info=True)
log.error('/xhtml: Unable to send custom xhtml')
msg = self.core.xmpp.make_message(self.get_dest_jid())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment