chore: remove redundant adodbapi warning (#19557)

This commit is contained in:
Ville Brofeldt
2022-04-07 14:30:36 +03:00
committed by GitHub
parent d9343a4639
commit 0d331f5bd8

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