Skip to content

Commit

Permalink
one last round of linter tweaks in test_connection.py for duckdb support
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Whaling authored and Richard Whaling committed Mar 23, 2022
1 parent de4792e commit d1e16c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superset/databases/commands/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit d1e16c4

Please sign in to comment.