This is an automated email from the ASF dual-hosted git repository. johnbodley pushed a commit to branch john-bodley---fix-saved-queries in repository https://gitbox.apache.org/repos/asf/superset.git
commit b43745e14e5a076987a0c658d818bd9791c46283 Author: John Bodley <[email protected]> AuthorDate: Tue Mar 26 10:42:59 2024 +1300 fix: Provide more inclusive error handling for saved queries --- superset/models/sql_lab.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/superset/models/sql_lab.py b/superset/models/sql_lab.py index 2d7384a74e..9f2569fbee 100644 --- a/superset/models/sql_lab.py +++ b/superset/models/sql_lab.py @@ -46,7 +46,6 @@ 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.jinja_context import BaseTemplateProcessor, get_template_processor from superset.models.helpers import ( AuditMixinNullable, @@ -76,7 +75,7 @@ class SqlTablesMixin: # pylint: disable=too-few-public-methods self.database.db_engine_spec.engine, # type: ignore ) ) - except SupersetSecurityException: + except Exception: # pylint: disable=broad-except return []
