Error on entering invalid character in verse-order
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenLP |
Fix Released
|
High
|
Stefan Strasser |
Bug Description
Ubuntu 13.04
OpenLP trunk rev 2369 (does not occur on version 2.04)
An error occurs if in verse-order a non-existing tag/abbreviation is entered.
1) create a new song
2) edit the verse-order
3) enter a random char which is not an abbreviation for a verse-type in the current language (like 'q' or 'x' in english)
4) error-popup with traceback occurs
Entering a tag/abbreviation for a valid versetype which is not currently existing in the song does not lead to this error (is checked and notified on saving).
Traceback (most recent call last):
File "~/openlp/
verses_in_order = self._extract_
File "~/openlp/
verse_index = VerseType.
File "~/openlp/
if len(VerseType.
TypeError: unorderable types: int() > NoneType()
Related branches
- Raoul Snyman: Approve
- Andreas Preikschat (community): Needs Information
- Tim Bentley: Approve
- Samuel Mehrbrodt (community): Approve
-
Diff: 77 lines (+32/-4)2 files modifiedopenlp/plugins/songs/lib/__init__.py (+3/-3)
tests/functional/openlp_plugins/songs/test_lib.py (+29/-1)
Changed in openlp: | |
assignee: | nobody → Stefan Strasser (strada) |
Changed in openlp: | |
status: | New → Fix Committed |
importance: | Undecided → High |
Changed in openlp: | |
status: | Fix Committed → Fix Released |