From: wiseaidev Date: Mon, 5 Dec 2022 13:44:35 +0000 (-0500) Subject: Fixed an invalid syntax in an except statement X-Git-Tag: rel_1_4_45~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b482b2af6fd917d0ead7446cce8abd4cf0747d26;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git 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 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: #` 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: #` 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 (cherry picked from commit 38636bfd22f236343daf11aef31145ae54867028) --- diff --git a/doc/build/core/pooling.rst b/doc/build/core/pooling.rst index a93b9477f8..35c312302c 100644 --- a/doc/build/core/pooling.rst +++ b/doc/build/core/pooling.rst @@ -412,7 +412,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!")