Return FileNotFoundError if path doesn't exist in pack_u8()

This commit is contained in:
2024-06-12 14:11:57 -04:00
parent 6b8eda7823
commit 7b7a3fbf51
2 changed files with 3 additions and 1 deletions

View File

@@ -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!")