campagnola / pyabc

Python library for parsing and analyzing ABC music notation
MIT License
20 stars 11 forks source link

Fix parsing IndexError #4

Closed grennis closed 7 years ago

grennis commented 7 years ago

If content starts with an annotation (for example), IndexError was caused. I added a check that tokens length > 0 before trying to index into them.

campagnola commented 7 years ago

This one's already fixed (in a change set I hadn't pushed until today)