From e8be2bc4a5401ab2a5a0fc1d2e50d41fa437ae80 Mon Sep 17 00:00:00 2001 From: wiseaidev Date: Tue, 25 Oct 2022 22:22:43 +0300 Subject: [PATCH] Fixed an invalid syntax in the except statement Signed-off-by: wiseaidev --- doc/build/core/pooling.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/build/core/pooling.rst b/doc/build/core/pooling.rst index cc19e96af8..c615bc473e 100644 --- a/doc/build/core/pooling.rst +++ b/doc/build/core/pooling.rst @@ -319,7 +319,7 @@ illustrated by the code example below:: # suppose the database has been restarted. c.execute(text("SELECT * FROM table")) c.close() - except exc.DBAPIError, e: + except exc.DBAPIError as e: # an exception is raised, Connection is invalidated. if e.connection_invalidated: print("Connection was invalidated!") -- 2.47.3