mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
fix: Saved queries list break if one query can't be parsed (#34289)
This commit is contained in:
committed by
GitHub
parent
9b88527883
commit
1e5a4e9bdc
@@ -48,7 +48,7 @@ from sqlalchemy.orm import backref, relationship
|
||||
from sqlalchemy.sql.elements import ColumnElement, literal_column
|
||||
|
||||
from superset import security_manager
|
||||
from superset.exceptions import SupersetSecurityException
|
||||
from superset.exceptions import SupersetParseError, SupersetSecurityException
|
||||
from superset.jinja_context import BaseTemplateProcessor, get_template_processor
|
||||
from superset.models.helpers import (
|
||||
AuditMixinNullable,
|
||||
@@ -85,7 +85,7 @@ class SqlTablesMixin: # pylint: disable=too-few-public-methods
|
||||
self.database, # type: ignore
|
||||
)
|
||||
)
|
||||
except (SupersetSecurityException, TemplateError):
|
||||
except (SupersetSecurityException, SupersetParseError, TemplateError):
|
||||
return []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user