{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/968b3e911290a5d9c6fa8101e10273bf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"968b3e911290a5d9c6fa8101e10273bf","url":"https://api.github.com/users/jingsong","login":"jingsong","id":367061},"milestone":null,"labels":[],"updated_at":"2011-11-10T01:56:31Z","assignee":null,"closed_at":null,"comments":4,"url":"https://api.github.com/repos/andymccurdy/redis-py/issues/214","body":"I'm using django-redis-cache backend (which utilizes redis-py) with redis. Traceback:\r\n\r\n File \"/home/dotcloud/current/loyalty/api/models.py\", line 48, in expire_apiclient_caches\r\n   cache.delete(cache_key)\r\n\r\n File \"/home/dotcloud/env/lib/python2.6/site-packages/redis_cache/cache.py\", line 220, in delete\r\n   self._client.delete(self.make_key(key, version=version))\r\n\r\n File \"/home/dotcloud/env/lib/python2.6/site-packages/redis/client.py\", line 276, in delete\r\n   return self.execute_command('DEL', *names)\r\n\r\n File \"/home/dotcloud/env/lib/python2.6/site-packages/redis/client.py\", line 238, in execute_command\r\n   connection.send_command(*args)\r\n\r\n File \"/home/dotcloud/env/lib/python2.6/site-packages/redis/connection.py\", line 200, in send_command\r\n   self.send_packed_command(self.pack_command(*args))\r\n\r\n File \"/home/dotcloud/env/lib/python2.6/site-packages/redis/connection.py\", line 194, in send_packed_command\r\n   self.disconnect()\r\n\r\n File \"/home/dotcloud/env/lib/python2.6/site-packages/redis/connection.py\", line 162, in disconnect\r\n   self._parser.on_disconnect()\r\n\r\n File \"/home/dotcloud/env/lib/python2.6/site-packages/redis/connection.py\", line 14, in on_disconnect\r\n   self._fp.close()\r\n\r\nAttributeError: 'NoneType' object has no attribute 'close'\r\n\r\nOur hosting provider (dotcloud) ran into some gateway issues and communication with the redis server was being intermittent. This lead to a whole host of requests throwing the AttributeError. Is there a way it can except more gracefully?","html_url":"https://github.com/andymccurdy/redis-py/issues/214","title":"Non-graceful crash when redis connection goes down","number":214,"id":2193827,"created_at":"2011-11-10T01:37:49Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/968b3e911290a5d9c6fa8101e10273bf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"968b3e911290a5d9c6fa8101e10273bf","url":"https://api.github.com/users/jingsong","login":"jingsong","id":367061},"updated_at":"2011-11-10T01:56:30Z","url":"https://api.github.com/repos/andymccurdy/redis-py/issues/comments/2690535","body":"Thanks :)\n\nOn Wed, Nov 9, 2011 at 5:53 PM, Andy McCurdy <\nreply@reply.github.com>wrote:\n\n> Ya, everything should work fine. Note that if you're using\n> publish/subscribe, the API in redis-py has changed significantly -- it was\n> broken before and needed to be refactored to fix the errors.\n>\n> Check out the CHANGES file in the repository to get an idea of what's\n> changed between 2.4.0 and 2.4.10.\n>\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/andymccurdy/redis-py/issues/214#issuecomment-2690520\n>","id":2690535,"created_at":"2011-11-10T01:56:30Z"}}