forked from openlp/openlp
Deal with empty ccli tag in OpenSong imports
This commit is contained in:
parent
a56f00ddc0
commit
eb64c136d0
@ -163,7 +163,10 @@ class OpenSongImport(SongImport):
|
||||
ustring = str(root.__getattr__(attr))
|
||||
if isinstance(fn_or_string, str):
|
||||
if attr in ['ccli']:
|
||||
setattr(self, fn_or_string, int(ustring))
|
||||
if ustring:
|
||||
setattr(self, fn_or_string, int(ustring))
|
||||
else:
|
||||
setattr(self, fn_or_string, None)
|
||||
else:
|
||||
setattr(self, fn_or_string, ustring)
|
||||
else:
|
||||
|
@ -5,6 +5,7 @@
|
||||
<copyright>Public Domain </copyright>
|
||||
<presentation>T</presentation>
|
||||
<capo print="false"></capo>
|
||||
<ccli></ccli>
|
||||
<tempo></tempo>
|
||||
<theme></theme>
|
||||
<alttheme></alttheme>
|
||||
|
Loading…
Reference in New Issue
Block a user