Skip to content
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

Server error for event profile #622

Open
DavidMStraub opened this issue Feb 9, 2025 · 0 comments
Open

Server error for event profile #622

DavidMStraub opened this issue Feb 9, 2025 · 0 comments

Comments

@DavidMStraub
Copy link
Member

This is observed for gues users, i.e. probably due to private proxy returning events as None.

  File "/usr/local/lib/python3.11/dist-packages/gramps_webapi/api/resources/search.py", line 182, in get
    hit["object"] = self.get_object_from_handle(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/gramps_webapi/api/resources/search.py", line 95, in get_object_from_handle
    obj.profile = get_event_profile_for_object(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/gramps_webapi/api/resources/util.py", line 238, in get_event_profile_for_object
    "type": locale.translation.sgettext(event.type.xml_str()),
                                        ^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'type'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant