Skip to content

Commit 6817ca7

Browse files
[issue-844] Update excepted typecheck error after beartype update
Signed-off-by: Armin Tänzer <armin.taenzer@tngtech.com>
1 parent f19674c commit 6817ca7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spdx_tools/common/typing/dataclass_with_properties.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from dataclasses import dataclass
55

66
from beartype import beartype
7-
from beartype.roar import BeartypeCallHintException
7+
from beartype.roar import BeartypeCallHintParamViolation
88

99

1010
def dataclass_with_properties(cls):
@@ -30,7 +30,7 @@ def set_field(self, value: field_type):
3030
def set_field_with_error_conversion(self, value: field_type):
3131
try:
3232
set_field(self, value)
33-
except BeartypeCallHintException as err:
33+
except BeartypeCallHintParamViolation as err:
3434
error_message: str = f"SetterError {self.__class__.__name__}: {err}"
3535

3636
# As setters are created dynamically, their argument name is always "value". We replace it by the

0 commit comments

Comments
 (0)