FoilPresenter songs with verses without text cause a traceback

Bug #779995 reported by Andreas Preikschat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Fix Released
Undecided
Armin Köhler

Bug Description

Hello,

You cannot import a song which has a verse without text.

Traceback (most recent call last):
  File "/home/andreas/Projekte/openlp/fixes/openlp/core/ui/wizard.py", line 190, in onCurrentIdChanged
    self.performWizard()
  File "/home/andreas/Projekte/openlp/fixes/openlp/plugins/songs/forms/songimportform.py", line 753, in performWizard
    importer.do_import()
  File "/home/andreas/Projekte/openlp/fixes/openlp/plugins/songs/lib/foilpresenterimport.py", line 131, in do_import
    self.FoilPresenter.xml_to_song(xml)
  File "/home/andreas/Projekte/openlp/fixes/openlp/plugins/songs/lib/foilpresenterimport.py", line 231, in xml_to_song
    self._process_lyrics(foilpresenterfolie, song)
  File "/home/andreas/Projekte/openlp/fixes/openlp/plugins/songs/lib/foilpresenterimport.py", line 425, in _process_lyrics
    text = self._child(strophe.text_)
  File "lxml.objectify.pyx", line 226, in lxml.objectify.ObjectifiedElement.__getattr__ (src/lxml/lxml.objectify.c:2832)
  File "lxml.objectify.pyx", line 485, in lxml.objectify._lookupChildOrRaise (src/lxml/lxml.objectify.c:5310)
AttributeError: no such child: text_

Running trunk r1527.

http://openlp.org/de/forums/languagespecific_support/deutsch_german/foilpresenter_import_fehlermeldung.html (German)

Related branches

Changed in openlp:
assignee: nobody → Armin Köhler (orangeshirt)
status: New → In Progress
Changed in openlp:
status: In Progress → Fix Released
Changed in openlp:
milestone: none → 1.9.6
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.