mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2026-01-02 01:40:42 +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
|
self.source = xml
|
||||||
xmlBytes = io.BytesIO(xml)
|
xmlBytes = io.BytesIO(xml)
|
||||||
self.parsed = ET.parse(xmlBytes)
|
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):
|
def _get_text_value(self, xpath):
|
||||||
e = self.parsed.find("./" + xpath)
|
e = self.parsed.find("./" + xpath)
|
||||||
|
|||||||
Reference in New Issue
Block a user