chore: remove redundant adodbapi warning (#19557)

(cherry picked from commit 0d331f5bd8)
This commit is contained in:
Ville Brofeldt
2022-04-07 14:30:36 +03:00
committed by Ville Brofeldt
parent 5ca126698a
commit 280ecab0e6

View File

@@ -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()