Skip to content

Commit 557b557

Browse files
authored
[bugfix] avoid caching errors (#2244)
1 parent 3018356 commit 557b557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

superset/viz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def get_payload(self, force=False):
280280
data = self.json_dumps(payload)
281281
if PY3:
282282
data = bytes(data, 'utf-8')
283-
if cache:
283+
if cache and self.status != utils.QueryStatus.FAILED:
284284
try:
285285
cache.set(
286286
cache_key,

0 commit comments

Comments
 (0)