From e5fcc4d497e7510126397052594580d5e4cba516 Mon Sep 17 00:00:00 2001 From: Viv Date: Wed, 19 Jul 2023 17:54:11 -0400 Subject: [PATCH] `parsers.py`: Stop throwing NotImplementedError for unsupported commands --- src/tja2fumen/parsers.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/tja2fumen/parsers.py b/src/tja2fumen/parsers.py index 78405ee..756ccd8 100644 --- a/src/tja2fumen/parsers.py +++ b/src/tja2fumen/parsers.py @@ -205,15 +205,8 @@ def parseCourseMeasures(course): elif line.name == 'BRANCHEND': currentBranch = 'all' - # Ignored commands - elif line.name == 'LYRIC': - pass - elif line.name == 'NEXTSONG': - pass - - # Not implemented commands 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) for branch in course.branches.values():