parsers.py
: Stop throwing NotImplementedError for unsupported commands
This commit is contained in:
parent
604ae94742
commit
e5fcc4d497
@ -205,15 +205,8 @@ def parseCourseMeasures(course):
|
|||||||
elif line.name == 'BRANCHEND':
|
elif line.name == 'BRANCHEND':
|
||||||
currentBranch = 'all'
|
currentBranch = 'all'
|
||||||
|
|
||||||
# Ignored commands
|
|
||||||
elif line.name == 'LYRIC':
|
|
||||||
pass
|
|
||||||
elif line.name == 'NEXTSONG':
|
|
||||||
pass
|
|
||||||
|
|
||||||
# Not implemented commands
|
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError
|
print(f"Ignoring unsupported command '{line.name}'")
|
||||||
|
|
||||||
# Delete the last measure in the branch if no notes or events were added to it (due to preallocating empty measures)
|
# Delete the last measure in the branch if no notes or events were added to it (due to preallocating empty measures)
|
||||||
for branch in course.branches.values():
|
for branch in course.branches.values():
|
||||||
|
Loading…
Reference in New Issue
Block a user