mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +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
@@ -51,8 +51,9 @@ class CreateSSHTunnelCommand(BaseCommand):
|
||||
return ssh_tunnel
|
||||
except DAOCreateFailedError as ex:
|
||||
raise SSHTunnelCreateFailedError() from ex
|
||||
except SSHTunnelInvalidError as ex:
|
||||
raise ex
|
||||
except SSHTunnelInvalidError: # pylint: disable=try-except-raise
|
||||
# Make sure to bubble this up
|
||||
raise
|
||||
|
||||
def validate(self) -> None:
|
||||
# TODO(hughhh): check to make sure the server port is not localhost
|
||||
|
||||
Reference in New Issue
Block a user