diff --git a/evennia/typeclasses/attributes.py b/evennia/typeclasses/attributes.py index 61ee533513..bc51c2a95b 100644 --- a/evennia/typeclasses/attributes.py +++ b/evennia/typeclasses/attributes.py @@ -269,7 +269,7 @@ class AttributeHandler(object): # for this category before catkey = "-%s" % category if _TYPECLASS_AGGRESSIVE_CACHE and catkey in self._catcache: - return [attr for key, attr in self._cache if key.endswith(catkey)] + return [attr for key, attr in self._cache.items() if key.endswith(catkey)] else: # we have to query to make this category up-date in the cache query = {"%s__id" % self._model : self._objid,