summaryrefslogtreecommitdiff
path: root/poezio
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-03-13 21:20:08 +0100
committermathieui <mathieui@mathieui.net>2021-03-13 22:15:38 +0100
commit9d3af61bbf0d4774e042e56d9eff27d7a8ed0b98 (patch)
treea2c8ec5f9a459324de157c127b16b8483d4994c7 /poezio
parent6f73af71cd7e6d4f929da7a712a34f88efd6f9a1 (diff)
downloadpoezio-9d3af61bbf0d4774e042e56d9eff27d7a8ed0b98.tar.gz
poezio-9d3af61bbf0d4774e042e56d9eff27d7a8ed0b98.tar.bz2
poezio-9d3af61bbf0d4774e042e56d9eff27d7a8ed0b98.tar.xz
poezio-9d3af61bbf0d4774e042e56d9eff27d7a8ed0b98.zip
fix: Fix command_xhtml
Thanks pylint
Diffstat (limited to 'poezio')
-rw-r--r--poezio/tabs/basetabs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py
index 23d4c03d..4aa6a370 100644
--- a/poezio/tabs/basetabs.py
+++ b/poezio/tabs/basetabs.py
@@ -22,6 +22,7 @@ from copy import copy
from math import ceil, log10
from datetime import datetime
from xml.etree import ElementTree as ET
+from xml.sax import SAXParseException
from typing import (
Any,
Callable,
@@ -648,7 +649,7 @@ class ChatTab(Tab):
body = xhtml.clean_text(
xhtml.xhtml_to_poezio_colors(arg, force=True))
ET.fromstring(arg)
- except xml.sax._exceptions.SAXParseException:
+ except SAXParseException:
self.core.information('Could not send custom xhtml', 'Error')
log.error('/xhtml: Unable to send custom xhtml')
return