From 63a4307cae510c462b40ebba89107a5b63c72b71 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Fri, 7 Mar 2025 03:23:05 -0800 Subject: add error handling for unhandled levels --- chuni/aquadx/chuni_aquadx_to_tachi.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chuni') diff --git a/chuni/aquadx/chuni_aquadx_to_tachi.py b/chuni/aquadx/chuni_aquadx_to_tachi.py index 4063ac2..36981f5 100644 --- a/chuni/aquadx/chuni_aquadx_to_tachi.py +++ b/chuni/aquadx/chuni_aquadx_to_tachi.py @@ -25,6 +25,9 @@ def convert_chuni_aquadx_json_to_tachi_json(input_json: str, output_file: str, s if "userPlaylogList" in raw_data: for entry in raw_data["userPlaylogList"]: level = entry.get("level", 0) + if level not in DIFFICULTY_MAPPING.keys(): + skipped_count += 1 + continue # Skip World's End, Unsupported by Tachi if level == 5 or level not in DIFFICULTY_MAPPING: -- cgit v1.2.3