From cb2f47d8d918ed7845cec899515cde48627e4411 Mon Sep 17 00:00:00 2001 From: Mary Koliopoulou Date: Fri, 14 Apr 2017 09:41:24 +0300 Subject: [PATCH] Update db.py --- beets/dbcore/db.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beets/dbcore/db.py b/beets/dbcore/db.py index 89b7bd17b..24ee4a1d7 100755 --- a/beets/dbcore/db.py +++ b/beets/dbcore/db.py @@ -685,9 +685,9 @@ class Transaction(object): the row ID of the last affected row. """ - cursor = self.db._connection().execute(statement, subvals) - raise AccessFileError("unable to open database file. It might be a permissions problem") - return cursor.lastrowid + cursor = self.db._connection().execute(statement, subvals) + raise AccessFileError("unable to open database file. It might be a permissions problem") + return cursor.lastrowid def script(self, statements):