Skip to content

Commit

Permalink
fix so that, even if there are no memcached servers, DoNotCache resul…
Browse files Browse the repository at this point in the history
…ts are properly unwrapped
  • Loading branch information
Paul Molodowitch committed Nov 12, 2016
1 parent 42db059 commit 2a565fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rez/utils/memcached.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,10 @@ def wrapper(*nargs, **kwargs):
return result
else:
def wrapper(*nargs, **kwargs):
return func(*nargs, **kwargs)
result = func(*nargs, **kwargs)
if isinstance(result, DoNotCache):
return result.result
return result

def forget():
"""Forget entries in the cache.
Expand Down

0 comments on commit 2a565fc

Please sign in to comment.