forked from openlp/openlp
Fix song imports with missing Authors
bzr-revno: 1141
This commit is contained in:
commit
1666ca372d
@ -346,8 +346,12 @@ class OpenLyricsParser(object):
|
|||||||
song.comments = u''
|
song.comments = u''
|
||||||
song.song_number = u''
|
song.song_number = u''
|
||||||
# Process Authors
|
# Process Authors
|
||||||
for author in properties.authors.author:
|
try:
|
||||||
self._process_author(author.text, song)
|
for author in properties.authors.author:
|
||||||
|
self._process_author(author.text, song)
|
||||||
|
except:
|
||||||
|
# No Author in XML so ignore
|
||||||
|
pass
|
||||||
self.manager.save_object(song)
|
self.manager.save_object(song)
|
||||||
return song.id
|
return song.id
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user