mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
chore: enable ruff lint rule TRY201 and B904 to improve raise stack traces (#29166)
This commit is contained in:
committed by
GitHub
parent
5167d20f27
commit
4bb2e2f8af
@@ -312,9 +312,9 @@ def execute_sql_statement( # pylint: disable=too-many-statements
|
||||
level=ErrorLevel.ERROR,
|
||||
)
|
||||
) from ex
|
||||
except OAuth2RedirectError as ex:
|
||||
except OAuth2RedirectError:
|
||||
# user needs to authenticate with OAuth2 in order to run query
|
||||
raise ex
|
||||
raise
|
||||
except Exception as ex:
|
||||
# query is stopped in another thread/worker
|
||||
# stopping raises expected exceptions which we should skip
|
||||
|
||||
Reference in New Issue
Block a user