mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
[bugfix] avoid caching errors (#2244)
This commit is contained in:
parent
3018356588
commit
557b557503
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user