From: wiseaidev Date: Tue, 25 Oct 2022 19:22:43 +0000 (+0300) Subject: Fixed an invalid syntax in the except statement X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e8be2bc4a5401ab2a5a0fc1d2e50d41fa437ae80;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fixed an invalid syntax in the except statement Signed-off-by: wiseaidev --- 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!")