[bugfix] avoid caching errors (#2244)

This commit is contained in:
Maxime Beauchemin 2017-02-24 10:32:51 -08:00 committed by GitHub
parent 3018356588
commit 557b557503

View File

@ -280,7 +280,7 @@ class BaseViz(object):
data = self.json_dumps(payload)
if PY3:
data = bytes(data, 'utf-8')
if cache:
if cache and self.status != utils.QueryStatus.FAILED:
try:
cache.set(
cache_key,