diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-03-23 23:09:26 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-04-10 23:21:55 +0200 |
| commit | 746cded010c7ba3e2bf2df4cde32dcc9b75cb0d3 (patch) | |
| tree | 81446fca6ffc551660c32f0a177099dd1b227bf6 /django/db/backends/sqlite3/base.py | |
| parent | 9afedbef4207a86d17d9525664bcd06f403cc6f9 (diff) | |
[1.6.x] Fixed #22321 -- Wrapped exceptions in _set_autocommit.
Refs #21202.
Backport of 3becac84 from master
Diffstat (limited to 'django/db/backends/sqlite3/base.py')
| -rw-r--r-- | django/db/backends/sqlite3/base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 96b03149d7..a219178570 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -387,7 +387,8 @@ class DatabaseWrapper(BaseDatabaseWrapper): level = '' # 'isolation_level' is a misleading API. # SQLite always runs at the SERIALIZABLE isolation level. - self.connection.isolation_level = level + with self.wrap_database_errors: + self.connection.isolation_level = level def check_constraints(self, table_names=None): """ |
