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:
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user