Skip to content
Snippets Groups Projects
Commit 3645a0f2 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

SW-720: typo

parent 753c4a1d
No related branches found
No related tags found
1 merge request!6Import cobalt2 into lofar4
...@@ -51,7 +51,7 @@ def _validateXSD(xml, xsdpath): ...@@ -51,7 +51,7 @@ def _validateXSD(xml, xsdpath):
# Try to parse the XML # Try to parse the XML
try: try:
doc = parse_xml_string_or_bytestring(BytesIO(xml.encode('utf8'))) doc = parse_xml_string_or_bytestring(xml)
except etree.LxmlError as err: except etree.LxmlError as err:
logger.error(err) logger.error(err)
return {"valid": False, "error": "XML could not be parsed: %s" % (err,)} return {"valid": False, "error": "XML could not be parsed: %s" % (err,)}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment