You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/02/25 20:33:09 UTC
[GitHub] [superset] eschutho commented on a change in pull request #13346: Elizabeth/db connection analytics
eschutho commented on a change in pull request #13346:
URL: https://github.com/apache/superset/pull/13346#discussion_r583153001
##########
File path: superset/databases/commands/test_connection.py
##########
@@ -63,29 +61,34 @@ def run(self) -> None:
database.db_engine_spec.mutate_db_for_connection_test(database)
username = self._actor.username if self._actor is not None else None
engine = database.get_sqla_engine(user_name=username)
- with closing(engine.raw_connection()) as conn:
- if not engine.dialect.do_ping(conn):
- raise DBAPIError(None, None, None)
+ with closing(engine.raw_connection()) as conn:
Review comment:
engine wasn't defined if database was None, so I put it under this block.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org