mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2025-12-31 08:50:41 +00:00
Update wave_ixml_reader.py
Added a brief report and suppressing the iXML exception for now
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user