1
0
mirror of synced 2025-02-03 13:13:26 +01:00

parsers.py: Add NotImplementError else cases

I felt too lazy to explicitly specify each and every unsupported command.
This commit is contained in:
Viv 2023-06-02 16:35:06 -04:00
parent f5df104e56
commit 3e2e29baa1

View File

@ -98,6 +98,8 @@ def getCourse(tjaHeaders, lines):
else:
balloons = []
headers['balloon'] = balloons
else:
raise NotImplementedError
def parseBranchCommands(line):
nonlocal flagLevelhold, targetBranch, currentBranch
@ -133,6 +135,8 @@ def getCourse(tjaHeaders, lines):
flagLevelhold = False
elif line['name'] == 'SECTION':
raise NotImplementedError
else:
raise NotImplementedError
def parseMeasureCommands(line):
nonlocal measureDivisor, measureDividend, measureEvents, flagLevelhold
@ -162,6 +166,8 @@ def getCourse(tjaHeaders, lines):
pass
elif line['name'] == 'NEXTSONG':
pass
else:
raise NotImplementedError
def parseMeasureData(line):
nonlocal measures, measureData, measureDividend, measureDivisor, measureEvents