From 32efdc91ba87167a4835255ed55a2ababd7bb302 Mon Sep 17 00:00:00 2001 From: Hyid Choi Date: Sat, 18 Oct 2025 22:55:52 +0900 Subject: [PATCH] Fix indentation in song_hash.py error handling, again --- libs/song_hash.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libs/song_hash.py b/libs/song_hash.py index d126f2a..69f88a7 100644 --- a/libs/song_hash.py +++ b/libs/song_hash.py @@ -115,15 +115,15 @@ def build_song_hashes(output_dir=Path("cache")): all_notes = NoteList() diff_hashes = dict() - try: - for diff in tja.metadata.course_data: - diff_notes, _, _, _ = TJAParser.notes_to_position(TJAParser(tja.file_path), diff) - diff_hashes[diff] = tja.hash_note_data(diff_notes) - all_notes.play_notes.extend(diff_notes.play_notes) - all_notes.bars.extend(diff_notes.bars) - except Exception as e: - print(f"Failed to parse TJA {tja_path}: {e}") - continue + try: + for diff in tja.metadata.course_data: + diff_notes, _, _, _ = TJAParser.notes_to_position(TJAParser(tja.file_path), diff) + diff_hashes[diff] = tja.hash_note_data(diff_notes) + all_notes.play_notes.extend(diff_notes.play_notes) + all_notes.bars.extend(diff_notes.bars) + except Exception as e: + print(f"Failed to parse TJA {tja_path}: {e}") + continue if all_notes == []: continue