1
0
mirror of synced 2025-01-24 15:12:19 +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 debug:
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(),
hex(file.tell() - 0x18))
)
return False
note["type"] = noteTypes[noteType]
note["pos"] = noteStruct[1]