Skip to content

Commit

Permalink
port the change over that we care about.
Browse files Browse the repository at this point in the history
  • Loading branch information
matteiuspi committed Mar 19, 2021
1 parent a1c90de commit ae40a1f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions django_elastipymemcache/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ def invalidate_cache_after_error(f):
def wrapper(self, *args, **kwds):
try:
return f(self, *args, **kwds)
except Exception:
except Exception as e:
logger.warning('MemcachedError: %s', e, exc_info=True)
self.clear_cluster_nodes_cache()
raise
return None # Treat as a cache miss
return wrapper


Expand Down

0 comments on commit ae40a1f

Please sign in to comment.