From 7daf720ee7b7382859319bb2f25614453b8fe02e Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 24 Dec 2013 20:40:56 -0500 Subject: [PATCH] Error in using transactions --- gramps/gen/merge/diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/merge/diff.py b/gramps/gen/merge/diff.py index c59df9309..ccacbf5c3 100644 --- a/gramps/gen/merge/diff.py +++ b/gramps/gen/merge/diff.py @@ -546,7 +546,7 @@ class Struct(object): def update_db(self, trans=None): if self.db: if trans is None: - with self.transaction("Struct Update", self.db): + with self.transaction("Struct Update", self.db) as trans: new_obj = from_struct(self.struct) name, handle = self.struct["_class"], self.struct["handle"] old_obj = self.db.get_from_name_and_handle(name, handle)