We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c200c87 commit dd91598Copy full SHA for dd91598
UnityPy/files/WebFile.py
@@ -39,7 +39,7 @@ def __init__(self, reader: EndianBinaryReader, parent: File, name=None, **kwargs
39
# signature check
40
signature = reader.read_string_to_null()
41
if not signature.startswith(("UnityWebData", "TuanjieWebData")):
42
- return
+ raise ValueError(f"Invalid WebFile signature: {signature!r}. Expected 'UnityWebData' or 'TuanjieWebData'.")
43
self.signature = signature
44
45
# read header -> contains file headers
0 commit comments