trivial pylint fix
This commit is contained in:
parent
8387529110
commit
d7f1ebaf3f
@ -5372,8 +5372,7 @@ class GedcomParser(UpdateCallback):
|
|||||||
name = EventType(GED_TO_GRAMPS_EVENT[line.data])
|
name = EventType(GED_TO_GRAMPS_EVENT[line.data])
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
name = EventType((EventType.CUSTOM,
|
name = EventType((EventType.CUSTOM, line.data))
|
||||||
line.data))
|
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
name = EventType(EventType.UNKNOWN)
|
name = EventType(EventType.UNKNOWN)
|
||||||
state.event.set_type(name)
|
state.event.set_type(name)
|
||||||
|
Loading…
Reference in New Issue
Block a user