diff --git a/gramps/plugins/db/dbapi/dbapi.py b/gramps/plugins/db/dbapi/dbapi.py index a3f89c437..7e4ddd545 100644 --- a/gramps/plugins/db/dbapi/dbapi.py +++ b/gramps/plugins/db/dbapi/dbapi.py @@ -949,7 +949,7 @@ class DBAPI(DbGeneric): # Find existing references sql = ("SELECT ref_class, ref_handle " + "FROM reference WHERE obj_handle = ?") - self.dbapi.execute(sql, [obj.handle]) + self.dbapi.execute(sql, [obj.handle]) existing_references = set(self.dbapi.fetchall()) # Once we have the list of rows that already have a reference