summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorwiseaidev <business@wiseai.dev>2022-12-05 08:44:35 -0500
committersqla-tester <sqla-tester@sqlalchemy.org>2022-12-05 08:44:35 -0500
commit38636bfd22f236343daf11aef31145ae54867028 (patch)
treebea057ff18435d5bbde13a704a3b19472a33c6fc /doc
parent4a9e448d9e5024003a72b6b53337b2bc42905042 (diff)
downloadsqlalchemy-38636bfd22f236343daf11aef31145ae54867028.tar.gz
Fixed an invalid syntax in an except statement
### Description As the title suggests, I have fixed an invalid syntax in the docs for an `except` statement while reading the unusual. ### Checklist <!-- go over following points. check them with an `x` if they do apply, (they turn into clickable checkboxes once the PR is submitted, so no need to do everything at once) --> This pull request is: - [x] A documentation / typographical error fix - Good to go, no issue or tests are needed - [ ] A short code fix - please include the issue number, and create an issue if none exists, which must include a complete example of the issue. one line code fixes without an issue and demonstration will not be accepted. - Please include: `Fixes: #<issue number>` in the commit message - please include tests. one line code fixes without tests will not be accepted. - [ ] A new feature implementation - please include the issue number, and create an issue if none exists, which must include a complete example of how the feature would look. - Please include: `Fixes: #<issue number>` in the commit message - please include tests. **Have a nice day!** Closes: #8715 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/8715 Pull-request-sha: e8be2bc4a5401ab2a5a0fc1d2e50d41fa437ae80 Change-Id: If8512bf1853f7cdb1ae655f0945cd922fff6fbce
Diffstat (limited to 'doc')
-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!")