fix error when closing collection on python 3.6

This commit is contained in:
Damien Elmes 2017-02-08 19:41:44 +10:00
parent 506f999581
commit 4430785122

View File

@ -153,7 +153,9 @@ crt=?, mod=?, scm=?, dty=?, usn=?, ls=?, conf=?""",
else:
self.db.rollback()
if not self.server:
self.db.setAutocommit(True)
self.db.execute("pragma journal_mode = delete")
self.db.setAutocommit(False)
self.db.close()
self.db = None
self.media.close()