Add missing fullcache check to attributes.clear(). Resolves #1404.

This commit is contained in:
Griatch 2017-08-27 10:32:14 +02:00
parent f0d1abc4ff
commit 05a3d0435d

View file

@ -646,6 +646,8 @@ class AttributeHandler(object):
type `attredit` on the Attribute in question.
"""
if not self._cache_complete:
self._fullcache()
if accessing_obj:
[attr.delete() for attr in self._cache.values()
if attr and attr.access(accessing_obj, self._attredit, default=default_access)]