Fixed a regression in has_attribute caused by changing the location of caches. Resolves Issue 328.

This commit is contained in:
Griatch 2012-11-07 20:22:46 +01:00
parent 82e57d4ada
commit e4382e3e8a
2 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,7 @@ def get_attr_cache(obj, attrname):
"""
Attribute cache store
"""
return _ATTR_CACHE[hashid(obj)].get(attrname)
return _ATTR_CACHE[hashid(obj)].get(attrname, None)
def set_attr_cache(obj, attrname, attrobj):
"""