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
@@ -127,8 +127,8 @@ class TablesDatabaseCommand(BaseCommand):
|
||||
|
||||
payload = {"count": len(tables) + len(views), "result": options}
|
||||
return payload
|
||||
except SupersetException as ex:
|
||||
raise ex
|
||||
except SupersetException:
|
||||
raise
|
||||
except Exception as ex:
|
||||
raise DatabaseTablesUnexpectedError(ex) from ex
|
||||
|
||||
|
||||
Reference in New Issue
Block a user