Skip to content

Commit

Permalink
[hotfix] delete cache key when set fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jun 14, 2016
1 parent 267c019 commit bc58c5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caravel/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ def get_json(self):
# cache.set call can fail if the backend is down or if
# the key is too large or whatever other reasons
logging.warning("Could not cache key {}".format(cache_key))
cache.delete(cache_key)
payload['is_cached'] = is_cached
return self.json_dumps(payload)

Expand Down

0 comments on commit bc58c5d

Please sign in to comment.