[Python-checkins] bpo-34061: Document sqlite3.NotSupportedError (GH-8172)

Berker Peksag webhook-mailer at python.org
Sun Jul 8 09:59:51 EDT 2018


https://github.com/python/cpython/commit/0b63759651b366ddb4c1c1dece12ef776053d5ee
commit: 0b63759651b366ddb4c1c1dece12ef776053d5ee
branch: 3.7
author: Marcin Niemira <marcin at niemira.net>
committer: Berker Peksag <berker.peksag at gmail.com>
date: 2018-07-08T16:59:48+03:00
summary:

bpo-34061: Document sqlite3.NotSupportedError (GH-8172)

(cherry picked from commit bc9aa813a34474e517af8999565ff6151559d42f)

Co-authored-by: Marcin Niemira <marcin at niemira.net>

files:
M Doc/library/sqlite3.rst

diff --git a/Doc/library/sqlite3.rst b/Doc/library/sqlite3.rst
index efc74a6bab8c..9f9c57c0f3b3 100644
--- a/Doc/library/sqlite3.rst
+++ b/Doc/library/sqlite3.rst
@@ -828,6 +828,13 @@ Exceptions
    disconnect occurs, the data source name is not found, a transaction could
    not be processed, etc.  It is a subclass of :exc:`DatabaseError`.
 
+.. exception:: NotSupportedError
+
+   Exception raised in case a method or database API was used which is not
+   supported by the database, e.g. calling the :meth:`~Connection.rollback`
+   method on a connection that does not support transaction or has
+   transactions turned off.  It is a subclass of :exc:`DatabaseError`.
+
 
 .. _sqlite3-types:
 



More information about the Python-checkins mailing list