forked from openlp/openlp
Fixed bug #779995: FoilPresenter songs with verses without text cause a traceback.
bzr-revno: 1554
This commit is contained in:
commit
8c308ac4f8
@ -422,7 +422,8 @@ class FoilPresenter(object):
|
|||||||
VerseType.Tags[VerseType.PreChorus]: 1
|
VerseType.Tags[VerseType.PreChorus]: 1
|
||||||
}
|
}
|
||||||
for strophe in foilpresenterfolie.strophen.strophe:
|
for strophe in foilpresenterfolie.strophen.strophe:
|
||||||
text = self._child(strophe.text_)
|
text = self._child(strophe.text_) if hasattr(strophe, u'text_') \
|
||||||
|
else u''
|
||||||
verse_name = self._child(strophe.key)
|
verse_name = self._child(strophe.key)
|
||||||
children = strophe.getchildren()
|
children = strophe.getchildren()
|
||||||
sortnr = False
|
sortnr = False
|
||||||
|
Loading…
Reference in New Issue
Block a user