summaryrefslogtreecommitdiff
path: root/oslo_db/sqlalchemy/exc_filters.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_db/sqlalchemy/exc_filters.py')
-rw-r--r--oslo_db/sqlalchemy/exc_filters.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/oslo_db/sqlalchemy/exc_filters.py b/oslo_db/sqlalchemy/exc_filters.py
index aa5b55a..5df1eb7 100644
--- a/oslo_db/sqlalchemy/exc_filters.py
+++ b/oslo_db/sqlalchemy/exc_filters.py
@@ -346,14 +346,10 @@ def register_engine(engine):
def handle_connect_error(engine):
- """Handle connect error.
+ """Connect to the engine, including handle_error handlers.
- Provide a special context that will allow on-connect errors
- to be treated within the filtering context.
-
- This routine is dependent on SQLAlchemy version, as version 1.0.0
- provides this functionality natively.
+ The compat library now builds this into the engine.connect()
+ system as per SQLAlchemy 1.0's behavior.
"""
- with compat.handle_connect_context(handler, engine):
- return engine.connect()
+ return engine.connect()