This commit is contained in:
Armin Köhler 2011-05-31 09:26:44 +02:00
parent 8a8580f359
commit efc678d518

View File

@ -96,7 +96,7 @@ class BGExtract(object):
verse_list = {}
# Cater for inconsistent mark up in the first verse of a chapter.
first_verse = verses.find(u'versenum')
if first_verse and 0 in first_verse.contents:
if first_verse and len(first_verse.contents):
verse_list[1] = unicode(first_verse.contents[0])
for verse in verses(u'sup', u'versenum'):
raw_verse_num = verse.next