mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +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
@@ -42,9 +42,9 @@ def create_app(superset_config_module: Optional[str] = None) -> Flask:
|
||||
return app
|
||||
|
||||
# Make sure that bootstrap errors ALWAYS get logged
|
||||
except Exception as ex:
|
||||
except Exception:
|
||||
logger.exception("Failed to create app")
|
||||
raise ex
|
||||
raise
|
||||
|
||||
|
||||
class SupersetApp(Flask):
|
||||
|
||||
Reference in New Issue
Block a user