From e0268d6cb338d3783bf9cca765a12e59405aba50 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 3 Sep 2016 19:11:46 +0200 Subject: [PATCH] Fix error in attributehandler --- evennia/typeclasses/attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,