From d1e16c46841908ca8a9fcbb30eb97f9fee3561a2 Mon Sep 17 00:00:00 2001 From: Richard Whaling Date: Wed, 23 Mar 2022 10:20:13 -0500 Subject: [PATCH] one last round of linter tweaks in test_connection.py for duckdb support --- superset/databases/commands/test_connection.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/superset/databases/commands/test_connection.py b/superset/databases/commands/test_connection.py index df7303929296d..1155f4774db42 100644 --- a/superset/databases/commands/test_connection.py +++ b/superset/databases/commands/test_connection.py @@ -48,7 +48,6 @@ def __init__(self, user: User, data: Dict[str, Any]): self._properties = data.copy() self._model: Optional[Database] = None - # pylint: disable=too-many-statements def run(self) -> None: self.validate() uri = self._properties.get("sqlalchemy_uri", "") @@ -94,7 +93,7 @@ def run(self) -> None: ) except (sqlite3.ProgrammingError, RuntimeError): # SQLite can't run on a separate thread, so ``func_timeout`` fails - # RuntimeError catches the equivalent single-threading error from duckdb. + # RuntimeError catches the equivalent error from duckdb. alive = engine.dialect.do_ping(conn) except FunctionTimedOut as ex: raise SupersetTimeoutException(