Update wave_ixml_reader.py

Added a brief report and suppressing the iXML exception for now
This commit is contained in:
Jamie Hardt
2019-06-23 20:43:59 -07:00
parent 526bc0c29c
commit a6ed0152db

View File

@@ -12,7 +12,11 @@ class WavIXMLFormat:
"""
self.source = xml
xmlBytes = io.BytesIO(xml)
try:
self.parsed = ET.parse(xmlBytes)
except ET.ParseError as err:
print("Error parsing iXML: " + str(err))
return None
def _get_text_value(self, xpath):
e = self.parsed.find("./" + xpath)