1
0
mirror of synced 2024-11-24 05:30:11 +01:00

parsers.py: Stop throwing NotImplementedError for unsupported commands

This commit is contained in:
Viv 2023-07-19 17:54:11 -04:00
parent 604ae94742
commit e5fcc4d497

View File

@ -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():