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

This commit is contained in:
Campbell 2024-06-12 14:11:57 -04:00
parent 6b8eda7823
commit 7b7a3fbf51
Signed by: NinjaCheetah
GPG Key ID: 670C282B3291D63D
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
[project]
name = "libWiiPy"
version = "0.3.0"
version = "0.3.1"
authors = [
{ name="NinjaCheetah", email="ninjacheetah@ncxprogramming.com" },
{ name="Lillian Skinner", email="lillian@randommeaninglesscharacters.com" }

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