Log warning when CCLI no can't be parsed

This commit is contained in:
Samuel Mehrbrodt 2014-05-07 21:17:47 +02:00
parent e8c7547ab2
commit 55c9e3e196

View File

@ -151,6 +151,8 @@ class SongShowPlusImport(SongImport):
match = re.search(r'\d+', self.decode(data))
if match:
self.ccli_number = int(match.group())
else:
log.warn("Can't parse CCLI Number from string: %s" % self.decode(data))
elif block_key == VERSE:
self.add_verse(self.decode(data), "%s%s" % (VerseType.tags[VerseType.Verse], verse_no))
elif block_key == CHORUS: