mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -04:00
don't implicitly commit in context manager
This commit is contained in:
parent
8fff05618c
commit
457ee809f4
1 changed files with 0 additions and 3 deletions
|
@ -74,7 +74,4 @@ class DB(object):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def __exit__(self, exc_type, *args):
|
def __exit__(self, exc_type, *args):
|
||||||
if not exc_type:
|
|
||||||
# no exception, so commit
|
|
||||||
self._db.commit()
|
|
||||||
self._db.close()
|
self._db.close()
|
||||||
|
|
Loading…
Reference in a new issue