mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
Fix indentation in song_hash.py error handling
This commit is contained in:
@@ -115,15 +115,15 @@ def build_song_hashes(output_dir=Path("cache")):
|
|||||||
all_notes = NoteList()
|
all_notes = NoteList()
|
||||||
diff_hashes = dict()
|
diff_hashes = dict()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for diff in tja.metadata.course_data:
|
for diff in tja.metadata.course_data:
|
||||||
diff_notes, _, _, _ = TJAParser.notes_to_position(TJAParser(tja.file_path), diff)
|
diff_notes, _, _, _ = TJAParser.notes_to_position(TJAParser(tja.file_path), diff)
|
||||||
diff_hashes[diff] = tja.hash_note_data(diff_notes)
|
diff_hashes[diff] = tja.hash_note_data(diff_notes)
|
||||||
all_notes.play_notes.extend(diff_notes.play_notes)
|
all_notes.play_notes.extend(diff_notes.play_notes)
|
||||||
all_notes.bars.extend(diff_notes.bars)
|
all_notes.bars.extend(diff_notes.bars)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Failed to parse TJA {tja_path}: {e}")
|
print(f"Failed to parse TJA {tja_path}: {e}")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if all_notes == []:
|
if all_notes == []:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user