1
0
mirror of synced 2025-02-03 13:13:26 +01:00

tja2fumen.py: Replace debugPrint with exception for debugging

This commit is contained in:
Viv 2023-06-02 16:33:41 -04:00
parent a8b50c554c
commit a1f1f8407a

View File

@ -116,11 +116,10 @@ def readFumen(fumenFile, byteOrder=None, debug=False):
if noteType not in noteTypes: if noteType not in noteTypes:
if debug: if debug:
debugPrint("") debugPrint("")
debugPrint("Error: Unknown note type '{0}' at offset {1}".format( raise ValueError("Error: Unknown note type '{0}' at offset {1}".format(
shortHex(noteType).upper(), shortHex(noteType).upper(),
hex(file.tell() - 0x18)) hex(file.tell() - 0x18))
) )
return False
note["type"] = noteTypes[noteType] note["type"] = noteTypes[noteType]
note["pos"] = noteStruct[1] note["pos"] = noteStruct[1]