From 8ee4695239fa6e9503d3064d804fc6a16fdc1ed6 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 11 Oct 2013 17:24:29 +0000 Subject: [PATCH] Handles that are empty strings are standardized to None svn: r23309 --- gramps/gen/lib/handle.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/gen/lib/handle.py b/gramps/gen/lib/handle.py index 8b93bd2e4..30ecff82b 100644 --- a/gramps/gen/lib/handle.py +++ b/gramps/gen/lib/handle.py @@ -28,7 +28,10 @@ class Handle: self.classname = classname if handle and not isinstance(handle, UNITYPE): handle = handle.decode('utf-8') - self.handle = handle + if handle: + self.handle = handle + else: + self.handle = None def __repr__(self): return "Handle(%s, %s)" % (self.classname, self.handle)