Skip to content

Commit

Permalink
Crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Oct 8, 2024
1 parent 3d860ed commit 1345b6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gramps/gen/lib/eventref.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ def unserialize(self, data):
"""
Convert a serialized tuple of data to an object.
"""
(privacy, citation_list, note_list, attribute_list, ref, role) = data
try:
(privacy, citation_list, note_list, attribute_list, ref, role) = data
except ValueError:
(privacy, note_list, attribute_list, ref, role) = data
citation_list = []
PrivacyBase.unserialize(self, privacy)
CitationBase.unserialize(self, citation_list)
NoteBase.unserialize(self, note_list)
Expand Down

0 comments on commit 1345b6f

Please sign in to comment.