parsers.py
: Add NotImplementError
else cases
I felt too lazy to explicitly specify each and every unsupported command.
This commit is contained in:
parent
f5df104e56
commit
3e2e29baa1
@ -98,6 +98,8 @@ def getCourse(tjaHeaders, lines):
|
|||||||
else:
|
else:
|
||||||
balloons = []
|
balloons = []
|
||||||
headers['balloon'] = balloons
|
headers['balloon'] = balloons
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
def parseBranchCommands(line):
|
def parseBranchCommands(line):
|
||||||
nonlocal flagLevelhold, targetBranch, currentBranch
|
nonlocal flagLevelhold, targetBranch, currentBranch
|
||||||
@ -133,6 +135,8 @@ def getCourse(tjaHeaders, lines):
|
|||||||
flagLevelhold = False
|
flagLevelhold = False
|
||||||
elif line['name'] == 'SECTION':
|
elif line['name'] == 'SECTION':
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
def parseMeasureCommands(line):
|
def parseMeasureCommands(line):
|
||||||
nonlocal measureDivisor, measureDividend, measureEvents, flagLevelhold
|
nonlocal measureDivisor, measureDividend, measureEvents, flagLevelhold
|
||||||
@ -162,6 +166,8 @@ def getCourse(tjaHeaders, lines):
|
|||||||
pass
|
pass
|
||||||
elif line['name'] == 'NEXTSONG':
|
elif line['name'] == 'NEXTSONG':
|
||||||
pass
|
pass
|
||||||
|
else:
|
||||||
|
raise NotImplementedError
|
||||||
|
|
||||||
def parseMeasureData(line):
|
def parseMeasureData(line):
|
||||||
nonlocal measures, measureData, measureDividend, measureDivisor, measureEvents
|
nonlocal measures, measureData, measureDividend, measureDivisor, measureEvents
|
||||||
|
Loading…
x
Reference in New Issue
Block a user