diff --git a/UnityPy/classes/Object.py b/UnityPy/classes/Object.py index ba8aaa2e..f959d3aa 100644 --- a/UnityPy/classes/Object.py +++ b/UnityPy/classes/Object.py @@ -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: