1
0
mirror of synced 2024-11-23 21:20:56 +01:00

converters.py: Change print statement to warning

This commit is contained in:
Viv 2024-02-10 18:14:37 -05:00
parent f018c54089
commit 93b8c5c01b

View File

@ -3,6 +3,7 @@ Functions for converting TJA song data to Fumen song data.
"""
import re
import warnings
from typing import List, Dict, Tuple, Union
from tja2fumen.classes import (TJACourse, TJAMeasure, TJAMeasureProcessed,
@ -121,7 +122,7 @@ def process_commands(tja_branches: Dict[str, List[TJAMeasure]], bpm: float) \
)
else:
print(f"Unexpected event type: {data.name}")
warnings.warn(f"Unexpected event type: {data.name}")
measure_tja_processed.pos_end = len(measure_tja.notes)
tja_branches_processed[branch_name].append(measure_tja_processed)