Fixed bug #779995: FoilPresenter songs with verses without text cause a traceback.

bzr-revno: 1554
This commit is contained in:
Armin Köhler 2011-05-18 22:56:18 +02:00 committed by Raoul Snyman
commit 8c308ac4f8
1 changed files with 2 additions and 1 deletions

View File

@ -422,7 +422,8 @@ class FoilPresenter(object):
VerseType.Tags[VerseType.PreChorus]: 1
}
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)
children = strophe.getchildren()
sortnr = False