]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-95273: Clarify when sqlite_* attributes are added to sqlite3 exceptions (#95523)
authorErlend Egeberg Aasland <erlend.aasland@protonmail.com>
Mon, 1 Aug 2022 09:15:07 +0000 (11:15 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Aug 2022 09:15:07 +0000 (11:15 +0200)
Doc/library/sqlite3.rst

index a0b5c73d7a4ad4f26f4fca4cf11cae6ffe5d8f2c..35eb404513b4d103c5d8dcf8340e26c89f1a212d 100644 (file)
@@ -1320,6 +1320,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