mirror of
https://github.com/NinjaCheetah/libWiiPy.git
synced 2026-02-27 22:15:27 -05:00
Return FileNotFoundError if path doesn't exist in pack_u8()
This commit is contained in:
@@ -303,3 +303,5 @@ def pack_u8(input_path) -> bytes:
|
||||
u8_archive.u8_node_list.append(U8Node(256, 0, 0, 2))
|
||||
u8_archive.u8_node_list.append(U8Node(0, 1, 0, len(file_data)))
|
||||
return u8_archive.dump()
|
||||
else:
|
||||
raise FileNotFoundError("Input file/directory: \"" + str(input_path) + "\" does not exist!")
|
||||
|
||||
Reference in New Issue
Block a user