continues should be returns
svn: r19832
This commit is contained in:
parent
d4f92a2943
commit
6c8b83d58b
@ -569,13 +569,13 @@ class GedcomWriter(UpdateCallback):
|
||||
etype = int(event.get_type())
|
||||
# if the event is a birth or death, skip it.
|
||||
if etype in (gen.lib.EventType.BIRTH, gen.lib.EventType.DEATH):
|
||||
continue
|
||||
return
|
||||
|
||||
role = int(event_ref.get_role())
|
||||
|
||||
# if the event role is not primary, skip the event.
|
||||
if role != gen.lib.EventRoleType.PRIMARY:
|
||||
continue
|
||||
return
|
||||
|
||||
val = libgedcom.PERSONALCONSTANTEVENTS.get(etype, "").strip()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user