From e9e7285b8c4e87a8a6125233a7d31c4739b692e2 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Tue, 25 Apr 2017 21:18:03 +0200 Subject: [PATCH] remove session instead of close to release file. --- openlp/core/lib/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/core/lib/db.py b/openlp/core/lib/db.py index 0627259eb..7fcf0a808 100644 --- a/openlp/core/lib/db.py +++ b/openlp/core/lib/db.py @@ -191,10 +191,10 @@ def upgrade_db(url, upgrade): break except (SQLAlchemyError, DBAPIError): version_meta = Metadata.populate(key='version', value=int(upgrade.__version__)) - session.commit() + session.remove() upgrade_version = upgrade.__version__ version = int(version_meta.value) - session.close() + session.remove() return version, upgrade_version