Browse Source

Correction d'un bug apparaissant lorsqu'un carnet ne contenait aucune chanson

pull/3/head
Louis 11 years ago
parent
commit
d073c72ad3
  1. 3
      songbook/index.py

3
songbook/index.py

@ -43,8 +43,7 @@ def processSXD(filename):
i = 1
idx = index(data[0])
if len(data) > 1:
while data[i].startswith('%'):
while len(data) > i and data[i].startswith('%'):
keywords = keywordPattern.match(data[i]).groups()
idx.keyword(keywords[0],keywords[1])
i += 1

Loading…
Cancel
Save