8670: Crash when trying to create a book
This commit is contained in:
parent
3a9834bcfb
commit
ef7e3964a1
@ -117,6 +117,8 @@ def _initialize_options(options, dbstate, uistate):
|
|||||||
if not dbase.get_family_from_gramps_id(value):
|
if not dbase.get_family_from_gramps_id(value):
|
||||||
person_handle = uistate.get_active('Person')
|
person_handle = uistate.get_active('Person')
|
||||||
person = dbase.get_person_from_handle(person_handle)
|
person = dbase.get_person_from_handle(person_handle)
|
||||||
|
if person is None:
|
||||||
|
continue
|
||||||
family_list = person.get_family_handle_list()
|
family_list = person.get_family_handle_list()
|
||||||
if family_list:
|
if family_list:
|
||||||
family_handle = family_list[0]
|
family_handle = family_list[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user