From 22f646ccce78ca2b27738dd786dd5fda98493e74 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 14 Jan 2013 22:05:29 +0000 Subject: [PATCH] Don't convert handle if None svn: r21121 --- gramps/gen/lib/handle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/lib/handle.py b/gramps/gen/lib/handle.py index 85eeb357a..8b93bd2e4 100644 --- a/gramps/gen/lib/handle.py +++ b/gramps/gen/lib/handle.py @@ -26,7 +26,7 @@ class Handle: def __init__(self, classname, handle): """ Class to hold type and handle of referenced item """ self.classname = classname - if not isinstance(handle, UNITYPE): + if handle and not isinstance(handle, UNITYPE): handle = handle.decode('utf-8') self.handle = handle