mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
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.
|
||||
"""
|
||||
for propkey, prop in self.__class__.__dict__.items():
|
||||
if inherits_from(prop, AttributeProperty) or inherits_from(prop, TagProperty):
|
||||
if isinstance(prop, (AttributeProperty, TagProperty)):
|
||||
try:
|
||||
getattr(self, propkey)
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue