Skip to content

Commit e338065

Browse files
committed
Improve error message
1 parent 378af3a commit e338065

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ltk/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ def __getattr__(self, name):
658658
try:
659659
return getattr(self.value, name)
660660
except Exception as e:
661-
raise AttributeError(f"Model attribute {self.__class__.__name__} does not have attribute {name}") from e
661+
raise AttributeError(f"Model attribute {self.model.__class__.__name__}.{self.name} of type {type(self.value)} does not have attribute {name}") from e
662662

663663
def __int__(self): return int(self.value) # pylint: disable=multiple-statements
664664
def __bool__(self): return bool(self.value) # pylint: disable=multiple-statements

0 commit comments

Comments
 (0)