]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fixed an invalid syntax in the except statement 8715/head
authorwiseaidev <business@wiseai.dev>
Tue, 25 Oct 2022 19:22:43 +0000 (22:22 +0300)
committerwiseaidev <business@wiseai.dev>
Tue, 25 Oct 2022 19:22:43 +0000 (22:22 +0300)
Signed-off-by: wiseaidev <business@wiseai.dev>
doc/build/core/pooling.rst

index cc19e96af81b8696591364296a677865cd6a1a61..c615bc473ed647bf327f638eeed9875c1a8e648f 100644 (file)
@@ -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!")