Skip to content

Fix bad surname list after upgrade from bsddb #2064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2025

Conversation

prculley
Copy link
Contributor

@prculley prculley commented May 13, 2025

User was unable to add new person immediately after performing upgrade from older version.

File "C:\Program Files\GrampsAIO64-6.0.1\gramps\gen\db\generic.py", line 2605, in add_to_surname_list
    i = bisect.bisect(self.surname_list, name)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'str' and 'NoneType'

Turns out that upgrade from bsddb did not initialize the surname list; the upgrade code was saving json data with raw_commit, so the usual commit_person code which would have update the surname list was not executed.

Fixes #13807.

@Nick-Hall Nick-Hall added bug and removed bug-fix labels May 13, 2025
@dsblank dsblank added this to the v6.0 milestone Jun 7, 2025
@Nick-Hall Nick-Hall changed the title Fixes #13807 bad surname list after upgrade from bsddb Fix bad surname list after upgrade from bsddb Jun 9, 2025
@Nick-Hall Nick-Hall merged commit 5fe8ebd into gramps-project:maintenance/gramps60 Jun 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants