fix: Fix command_xhtml
Thanks pylint
This commit is contained in:
parent
6f73af71cd
commit
9d3af61bbf
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue