Skip to content

Commit

Permalink
Add missing file endings in ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosGit committed Oct 11, 2024
1 parent a3fd1a3 commit 9ae4640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mercury_engine_data_structures/formats/rom3ds.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def __init__(self, file_name: str, file_stream: BufferedReader):
elif file_name.lower().endswith("app") or file_name.lower().endswith("cxi"):
self.raw = AddCxi.parse_stream(file_stream)
else:
raise ValueError('Input does not end with ".cia" or ".3ds')
raise ValueError('Input does not end with ".cia", ".3ds", ".app" or ".cxi"')

Check warning on line 213 in src/mercury_engine_data_structures/formats/rom3ds.py

View check run for this annotation

Codecov / codecov/patch

src/mercury_engine_data_structures/formats/rom3ds.py#L213

Added line #L213 was not covered by tests
# encrypted files should throw a ConstError because the ".code" string is encrypted and parsing fails
except construct.core.ConstError:
raise ValueError("Rom file could not be parsed. Make sure that you use a decrypted supported file format.")

Check warning on line 216 in src/mercury_engine_data_structures/formats/rom3ds.py

View check run for this annotation

Codecov / codecov/patch

src/mercury_engine_data_structures/formats/rom3ds.py#L215-L216

Added lines #L215 - L216 were not covered by tests
Expand Down

0 comments on commit 9ae4640

Please sign in to comment.