From 163545089c4e18f42815c25b30707650337ae079 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 21 Dec 2012 18:25:37 +0000 Subject: [PATCH] If you try to lookup an object too early, you might find that the tbl is still a dict; this protects such early lookups from crashing svn: r20813 --- gramps/gen/db/read.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gramps/gen/db/read.py b/gramps/gen/db/read.py index ed885b0f7..486386374 100644 --- a/gramps/gen/db/read.py +++ b/gramps/gen/db/read.py @@ -745,6 +745,7 @@ class DbBsddbRead(DbReadBase, Callback): return self.get_from_handle(handle, Tag, self.tag_map) def __get_obj_from_gramps_id(self, val, tbl, class_, prim_tbl): + if isinstance(tbl, dict): return None ## trying to get object too early if isinstance(val, UNITYPE): val = val.encode('utf-8') try: