summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/build/core/pooling.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/build/core/pooling.rst b/doc/build/core/pooling.rst
index 1121919db..b47549e88 100644
--- a/doc/build/core/pooling.rst
+++ b/doc/build/core/pooling.rst
@@ -400,7 +400,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!")