forked from openlp/openlp
Convert the bytes object to a str before re-parsing
This commit is contained in:
parent
a69ff65bfc
commit
27f854fdaa
@ -59,7 +59,7 @@ class PresentationManagerImport(SongImport):
|
|||||||
translate('SongsPlugin.PresentationManagerImport',
|
translate('SongsPlugin.PresentationManagerImport',
|
||||||
'File is not in XML-format, which is the only format supported.'))
|
'File is not in XML-format, which is the only format supported.'))
|
||||||
continue
|
continue
|
||||||
root = objectify.fromstring(etree.tostring(tree))
|
root = objectify.fromstring(etree.tostring(tree).decode(tree.docinfo.encoding))
|
||||||
self.process_song(root, file_path)
|
self.process_song(root, file_path)
|
||||||
|
|
||||||
def _get_attr(self, elem, name):
|
def _get_attr(self, elem, name):
|
||||||
|
Loading…
Reference in New Issue
Block a user