From bf5b45ebba24b4c8737c3197f2cd65f84fd2448c Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 25 Feb 2020 17:34:59 +0000 Subject: [PATCH] Remove 'handle_connect_error' Nothing appears to be using this, based on codesearch.o.o, and it's useless. Drop it. Change-Id: I9ce39e69a6fdb2e216da9fd903b5dc8aa7eaab80 Signed-off-by: Stephen Finucane Sem-Ver: api-break --- oslo_db/sqlalchemy/exc_filters.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/oslo_db/sqlalchemy/exc_filters.py b/oslo_db/sqlalchemy/exc_filters.py index bb9ba065..2d9b1623 100644 --- a/oslo_db/sqlalchemy/exc_filters.py +++ b/oslo_db/sqlalchemy/exc_filters.py @@ -516,8 +516,3 @@ def register_engine(engine): @event.listens_for(engine, "checkin") def pop_exc_checkin(dbapi_conn, connection_record): connection_record.info.pop(ROLLBACK_CAUSE_KEY, None) - - -def handle_connect_error(engine): - """Connect to the engine, including handle_error handlers.""" - return engine.connect()