diff --git a/pyVHDLModel/__init__.py b/pyVHDLModel/__init__.py index 071e24dd8..bce4f90db 100644 --- a/pyVHDLModel/__init__.py +++ b/pyVHDLModel/__init__.py @@ -160,7 +160,7 @@ def Parse(cls, value: Union[int, str]) -> "VHDLVersion": try: return cls.__VERSION_MAPPINGS__[value] except KeyError: - ValueError(f"Value '{value!s}' cannot be parsed to member of {cls.__name__}.") + raise ValueError(f"Value '{value!s}' cannot be parsed to member of {cls.__name__}.") def __lt__(self, other: Any) -> bool: """