Skip to content

Commit eeb3659

Browse files
committed
Fix: get the actual key, not the cache key
1 parent b45f8d3 commit eeb3659

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

keyvaluestore/managers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ def get_value_for_key(self, key):
1212

1313
if not cached:
1414
try:
15-
obj = self.get(key=cached_key)
15+
obj = self.get(key=key)
1616
cache.set(cached_key, obj.value)
1717

1818
return obj.value
1919
except:
2020
raise KeyNotExistingException(_(u"The request key '%s' could not be found." % (key,)))
2121
else:
22-
return cached
22+
return cached

0 commit comments

Comments
 (0)