i forget exactly (i've had that commit sitting around for a while), but i
think i ran into it trying to memoize something on a couchdbkit Document?
maybe?


On Mon, May 6, 2013 at 3:04 PM, Cory Zue <notifications@github.com> wrote:

> In dimagi/utils/decorators/memoized.py:
>
> > @@ -104,7 +104,7 @@ def get_cache(self, obj=None):
> >              cache_attr = '_%s_cache' % self.func.__name__
> >              try:
> >                  cache = getattr(obj, cache_attr)
> > -            except AttributeError:
> > +            except (KeyError, AttributeError):
>
> just curious what use case this facilitates?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dimagi/dimagi-utils/pull/84/files#r4099287>
> .
>