Skip to content

Commit

Permalink
Added missing "raise" keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Aug 2, 2023
1 parent 6110360 commit ea5611e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyVHDLModel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down

0 comments on commit ea5611e

Please sign in to comment.