converters.py
: Change missing BALLOON
from error to warning
This commit is contained in:
parent
b4416ba838
commit
79af17e4cc
@ -335,9 +335,11 @@ def convert_tja_to_fumen(tja: TJACourse) -> FumenCourse:
|
|||||||
elif note.note_type in ["Balloon", "Kusudama"]:
|
elif note.note_type in ["Balloon", "Kusudama"]:
|
||||||
try:
|
try:
|
||||||
note.hits = course_balloons.pop(0)
|
note.hits = course_balloons.pop(0)
|
||||||
except IndexError as exc:
|
except IndexError:
|
||||||
raise ValueError(f"Not enough values for 'BALLOON: "
|
warnings.warn(f"Not enough values for 'BALLOON:' "
|
||||||
f"{course_balloons}'") from exc
|
f"({tja.balloon}). Using value=1 to "
|
||||||
|
f"avoid crashing. Check TJA and re-run.")
|
||||||
|
note.hits = 1
|
||||||
current_drumroll = note
|
current_drumroll = note
|
||||||
|
|
||||||
# Track Don/Ka notes (to later compute header values)
|
# Track Don/Ka notes (to later compute header values)
|
||||||
|
Loading…
Reference in New Issue
Block a user