Skip to content

Commit

Permalink
chore: remove redundant adodbapi warning (#19557)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Apr 7, 2022
1 parent d9343a4 commit 0d331f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions superset/db_engine_specs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0d331f5

Please sign in to comment.