mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -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)
|
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,
|
||||||
|
Loading…
Reference in New Issue
Block a user