[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) data = self.json_dumps(payload)
if PY3: if PY3:
data = bytes(data, 'utf-8') data = bytes(data, 'utf-8')
if cache: if cache and self.status != utils.QueryStatus.FAILED:
try: try:
cache.set( cache.set(
cache_key, cache_key,