forked from openlp/openlp
Fix the error introduced in r1896 which prevents services being loaded.
bzr-revno: 1898
This commit is contained in:
commit
eb903a131b
@ -681,14 +681,14 @@ class OpenLyrics(object):
|
|||||||
unicode(translate('OpenLP.OpenLyricsImportError',
|
unicode(translate('OpenLP.OpenLyricsImportError',
|
||||||
'<lyrics> tag is missing.')))
|
'<lyrics> tag is missing.')))
|
||||||
try:
|
try:
|
||||||
verses = lyrics.verse
|
verse_list = lyrics.verse
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
raise OpenLyricsError(OpenLyricsError.VerseError,
|
raise OpenLyricsError(OpenLyricsError.VerseError,
|
||||||
'<verse> tag is missing.',
|
'<verse> tag is missing.',
|
||||||
unicode(translate('OpenLP.OpenLyricsImportError',
|
unicode(translate('OpenLP.OpenLyricsImportError',
|
||||||
'<verse> tag is missing.')))
|
'<verse> tag is missing.')))
|
||||||
# Loop over the "verse" elements.
|
# Loop over the "verse" elements.
|
||||||
for verse in verses:
|
for verse in verse_list:
|
||||||
text = u''
|
text = u''
|
||||||
# Loop over the "lines" elements.
|
# Loop over the "lines" elements.
|
||||||
for lines in verse.lines:
|
for lines in verse.lines:
|
||||||
|
Loading…
Reference in New Issue
Block a user