From c24e037a643fcebfc3e83300619f31df8d87de2d Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 9 Nov 2013 23:14:11 -0500 Subject: [PATCH] Fix Handle.from_struct to return just handle --- gramps/gen/lib/handle.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/lib/handle.py b/gramps/gen/lib/handle.py index 31db2d443..c9e519c7b 100644 --- a/gramps/gen/lib/handle.py +++ b/gramps/gen/lib/handle.py @@ -44,5 +44,7 @@ class Handle: def from_struct(cls, struct): if isinstance(struct, Handle): return struct.handle + elif isinstance(struct, dict): + return struct["handle"] else: return struct