Merge pull request #3623 from Machine-Garden-MUD/master

Fix for #3622 - check if attr.strvalue exists
This commit is contained in:
Griatch 2024-09-29 10:23:03 +02:00 committed by GitHub
commit a3a433dc89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,7 +62,7 @@ class IAttribute:
return LockHandler(self)
key = property(lambda self: self.db_key)
strvalue = property(lambda self: self.db_strvalue)
strvalue = property(lambda self: getattr(self, 'db_strvalue', None))
category = property(lambda self: self.db_category)
model = property(lambda self: self.db_model)
attrtype = property(lambda self: self.db_attrtype)