On Mon, 25 Jul 2011, rob wrote:

> I use memcached on a low traffic website with Django. Sometimes I get
> this error message in my mail (full error below):
>
> AttributeError: 'NoneType' object has no attribute 'recv'
>
> I use memcache to cache some Twitter messages. I fetch them using this
> in a context-preprocessor:
> def latest_tweet( request ):
>         tweet = cache.get( 'tweet_mysite_nl' )
>
>         if tweet:
>                 return {"tweet": tweet}
>         else:
>               tweet = {}
>                 return {"tweet": tweet}
>

Any clue which python memcached client is being used? Some suck more than
others.

That looks like a connection failure (sock has gone null), someone else
here may respond with a more helpful answer, but to be honest you should
have better luck asking django people. Clarifying the error has to do more
with how django's implemented mc, than with what mc is.

-Dormando

Reply via email to