forked from openlp/openlp
fixed FoliPresenter importer
This commit is contained in:
parent
f37748ba51
commit
7bb5d6afbd
@ -126,11 +126,10 @@ class FoilPresenterImport(SongImport):
|
||||
for file_path in self.import_source:
|
||||
if self.stop_import_flag:
|
||||
return
|
||||
self.import_wizard.increment_progress_bar(
|
||||
WizardStrings.ImportingType % os.path.basename(file_path))
|
||||
self.import_wizard.increment_progress_bar(WizardStrings.ImportingType % os.path.basename(file_path))
|
||||
try:
|
||||
parsed_file = etree.parse(file_path, parser)
|
||||
xml = unicode(etree.tostring(parsed_file))
|
||||
xml = etree.tostring(parsed_file).decode()
|
||||
self.FoilPresenter.xml_to_song(xml)
|
||||
except etree.XMLSyntaxError:
|
||||
self.logError(file_path, SongStrings.XMLSyntaxError)
|
||||
|
Loading…
Reference in New Issue
Block a user