mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
chore: remove redundant adodbapi warning (#19557)
(cherry picked from commit 0d331f5bd8)
This commit is contained in:
committed by
Ville Brofeldt
parent
5ca126698a
commit
280ecab0e6
@@ -116,6 +116,9 @@ def get_available_engine_specs() -> Dict[Type[BaseEngineSpec], Set[str]]:
|
|||||||
hasattr(attribute, "dialect")
|
hasattr(attribute, "dialect")
|
||||||
and inspect.isclass(attribute.dialect)
|
and inspect.isclass(attribute.dialect)
|
||||||
and issubclass(attribute.dialect, DefaultDialect)
|
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:
|
try:
|
||||||
attribute.dialect.dbapi()
|
attribute.dialect.dbapi()
|
||||||
|
|||||||
Reference in New Issue
Block a user