From: François-Michel L'Heureux Date: Fri, 23 May 2025 20:23:53 +0000 (-0400) Subject: Doc: Update connection / reconnecting_engine (#12617) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4cac1c6002f805879188c21fb4c75b7406d743f3;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Doc: Update connection / reconnecting_engine (#12617) --- diff --git a/doc/build/faq/connections.rst b/doc/build/faq/connections.rst index 0622b27944..cc95c05925 100644 --- a/doc/build/faq/connections.rst +++ b/doc/build/faq/connections.rst @@ -258,7 +258,9 @@ statement executions:: fn(cursor_obj, statement, context=context, *arg) except engine.dialect.dbapi.Error as raw_dbapi_err: connection = context.root_connection - if engine.dialect.is_disconnect(raw_dbapi_err, connection, cursor_obj): + if engine.dialect.is_disconnect( + raw_dbapi_err, connection.connection.dbapi_connection, cursor_obj + ): engine.logger.error( "disconnection error, attempt %d/%d", retry + 1,