Update db.py

This commit is contained in:
Mary Koliopoulou 2017-04-14 09:41:24 +03:00 committed by GitHub
parent bccfcb6b4f
commit cb2f47d8d9

View file

@ -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):