From 4f55109d7375d224f06f2b9bfa57b229eae63549 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 26 Nov 2011 17:35:04 +0000 Subject: [PATCH] Prevent continuation on no active person svn: r18511 --- src/plugins/gramplet/PedigreeGramplet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/gramplet/PedigreeGramplet.py b/src/plugins/gramplet/PedigreeGramplet.py index 0940d9314..51b981262 100644 --- a/src/plugins/gramplet/PedigreeGramplet.py +++ b/src/plugins/gramplet/PedigreeGramplet.py @@ -240,10 +240,10 @@ class PedigreeGramplet(Gramplet): self.gui.buffer.set_text("") active_handle = self.get_active('Person') active_person = self.dbstate.db.get_person_from_handle(active_handle) - if not active_person: - yield False #no wrap in Gramplet self.no_wrap() + if active_person is None: + return self.process_person(active_person.handle, 1, "f") # father self.process_person(active_person.handle, 0, "a") # active #FIXME: should be 1? self.process_person(active_person.handle, 1, "m") # mother