Skip to content

Commit

Permalink
Object - use correct error on missing required key
Browse files Browse the repository at this point in the history
  • Loading branch information
K0lb3 committed Oct 30, 2024
1 parent 114da60 commit 1785608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UnityPy/classes/Object.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, **kwargs):
)
self.__class__.__required_keys__ = required_keys
if not all(key in kwargs for key in required_keys):
raise ValueError("Missing required keys")
raise TypeError("Missing required keys")
self.__dict__.update(kwargs)

def __repr__(self) -> str:
Expand Down

0 comments on commit 1785608

Please sign in to comment.