Skip to content

Commit 7b7a3fb

Browse files
committed
Return FileNotFoundError if path doesn't exist in pack_u8()
1 parent 6b8eda7 commit 7b7a3fb

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "libWiiPy"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
authors = [
55
{ name="NinjaCheetah", email="ninjacheetah@ncxprogramming.com" },
66
{ name="Lillian Skinner", email="lillian@randommeaninglesscharacters.com" }

src/libWiiPy/archive/u8.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,3 +303,5 @@ def pack_u8(input_path) -> bytes:
303303
u8_archive.u8_node_list.append(U8Node(256, 0, 0, 2))
304304
u8_archive.u8_node_list.append(U8Node(0, 1, 0, len(file_data)))
305305
return u8_archive.dump()
306+
else:
307+
raise FileNotFoundError("Input file/directory: \"" + str(input_path) + "\" does not exist!")

0 commit comments

Comments
 (0)