- note, verseIndex = self.noteIterator.next()
- syllabus = note.lyrics[verseIndex].syllabus()
+ try :
+ note, verseIndex = self.noteIterator.next()
+ except StopIteration :
+ self.noteIterator = self.song.iterNotes()
+ note, verseIndex = self.noteIterator.next()
+ eventLogger.info(pygame.event.Event(events.SONGEND))
+ try :
+ syllabus = note.lyrics[verseIndex].syllabus()
+ except IndexError :
+ syllabus = u'…'
+