From 4ad3c374f58790b6bfc89ddecd9376f3ef549cfc Mon Sep 17 00:00:00 2001 From: Viv Date: Sat, 10 Feb 2024 18:13:37 -0500 Subject: [PATCH] `parsers.py`: Change unsupported command print to warning --- src/tja2fumen/parsers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tja2fumen/parsers.py b/src/tja2fumen/parsers.py index 64625cf..e2a48e0 100644 --- a/src/tja2fumen/parsers.py +++ b/src/tja2fumen/parsers.py @@ -303,7 +303,7 @@ def parse_tja_course_data(data: List[str]) -> Dict[str, List[TJAMeasure]]: current_branch = 'all' else: - print(f"Ignoring unsupported command '{command}'") + warnings.warn(f"Ignoring unsupported command '{command}'") # Delete the last measure in the branch if no notes or events # were added to it (due to preallocating empty measures)