Make easyslide importer try to recover when reading non-standard xml. Fixes bug 1588822.

Fixes: https://launchpad.net/bugs/1588822
This commit is contained in:
Tomas Groth 2016-07-07 22:51:25 +02:00
parent 8009bfef85
commit f5da7e2a2b
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class EasySlidesImport(SongImport):
def do_import(self):
log.info('Importing EasySlides XML file {source}'.format(source=self.import_source))
parser = etree.XMLParser(remove_blank_text=True)
parser = etree.XMLParser(remove_blank_text=True, recover=True)
parsed_file = etree.parse(self.import_source, parser)
xml = etree.tostring(parsed_file).decode()
song_xml = objectify.fromstring(xml)