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

converters.py: Change unexpected 8 from error to warning

This commit is contained in:
Viv 2024-02-10 18:15:59 -05:00
parent dcd73e5f32
commit b4416ba838

View File

@ -293,10 +293,12 @@ def convert_tja_to_fumen(tja: TJACourse) -> FumenCourse:
# Handle '8' notes (end of a drumroll/balloon)
if note_tja.value == "EndDRB":
if not current_drumroll.note_type:
raise ValueError(
warnings.warn(
"'8' note encountered without matching "
"drumroll/balloon/kusudama note."
"drumroll/balloon/kusudama note. Ignoring to "
"avoid crash. Check TJA and re-run."
)
continue
# If a drumroll spans a single measure, then add the
# difference between start/end position
if not current_drumroll.multimeasure: