]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-95273: Clarify when sqlite_* attributes are added to sqlite3 exceptions (GH-95523)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 1 Aug 2022 09:22:09 +0000 (02:22 -0700)
committerGitHub <noreply@github.com>
Mon, 1 Aug 2022 09:22:09 +0000 (02:22 -0700)
(cherry picked from commit 1e6b63542e4856436c5c12148a6608ef9d148b71)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
Doc/library/sqlite3.rst

index 332e3b0b79a1ebe4525b425b2f0bd6fad98df867..e150baad3ef7f02168d3532d2686c24e949f4e2b 100644 (file)
@@ -1310,6 +1310,9 @@ The exception hierarchy is defined by the DB-API 2.0 (:pep:`249`).
    Use this to catch all errors with one single :keyword:`except` statement.
    ``Error`` is a subclass of :exc:`Exception`.
 
+   If the exception originated from within the SQLite library,
+   the following two attributes are added to the exception:
+
    .. attribute:: sqlite_errorcode
 
       The numeric error code from the