Skip to content

Commit

Permalink
More logical default for a cache miss
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Oct 30, 2017
1 parent 7f7e6c3 commit 4cca2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_elasticache/memcached.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def wrapper(self, *args, **kwds):
except Exception as e:
log.warning('MemcachedError: %s', e, exc_info=True)
self.clear_cluster_nodes_cache()
return False
return None # Treat as a cache miss
return wrapper


Expand Down

0 comments on commit 4cca2a8

Please sign in to comment.