Revert back to using isinstance.
This commit is contained in:
parent
014ae2e6e1
commit
667b12830c
1 changed files with 1 additions and 1 deletions
|
|
@ -332,7 +332,7 @@ class TypedObject(SharedMemoryModel):
|
||||||
by fetching them once.
|
by fetching them once.
|
||||||
"""
|
"""
|
||||||
for propkey, prop in self.__class__.__dict__.items():
|
for propkey, prop in self.__class__.__dict__.items():
|
||||||
if inherits_from(prop, AttributeProperty) or inherits_from(prop, TagProperty):
|
if isinstance(prop, (AttributeProperty, TagProperty)):
|
||||||
try:
|
try:
|
||||||
getattr(self, propkey)
|
getattr(self, propkey)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue