Skip to content

Commit 1e6b635

Browse files
gh-95273: Clarify when sqlite_* attributes are added to sqlite3 exceptions (#95523)
1 parent fc31a13 commit 1e6b635

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/sqlite3.rst

+3
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,9 @@ The exception hierarchy is defined by the DB-API 2.0 (:pep:`249`).
13201320
Use this to catch all errors with one single :keyword:`except` statement.
13211321
``Error`` is a subclass of :exc:`Exception`.
13221322

1323+
If the exception originated from within the SQLite library,
1324+
the following two attributes are added to the exception:
1325+
13231326
.. attribute:: sqlite_errorcode
13241327

13251328
The numeric error code from the

0 commit comments

Comments
 (0)