mirror of
https://github.com/apache/superset.git
synced 2026-06-07 16:49:17 +00:00
chore: remove redundant adodbapi warning (#19557)
This commit is contained in:
@@ -116,6 +116,9 @@ def get_available_engine_specs() -> Dict[Type[BaseEngineSpec], Set[str]]:
|
||||
hasattr(attribute, "dialect")
|
||||
and inspect.isclass(attribute.dialect)
|
||||
and issubclass(attribute.dialect, DefaultDialect)
|
||||
# adodbapi dialect is removed in SQLA 1.4 and doesn't implement the
|
||||
# `dbapi` method, hence needs to be ignored to avoid logging a warning
|
||||
and attribute.dialect.driver != "adodbapi"
|
||||
):
|
||||
try:
|
||||
attribute.dialect.dbapi()
|
||||
|
||||
Reference in New Issue
Block a user