8000 AttributeError: 'NoneType' object has no attribute 'options' · Issue #2797 · onaio/onadata · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AttributeError: 'NoneType' object has no attribute 'options' #2797

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

Closed
sentry-io bot opened this issue Apr 16, 2025 · 3 comments · Fixed by #2798
Closed

AttributeError: 'NoneType' object has no attribute 'options' #2797

sentry-io bot opened this issue Apr 16, 2025 · 3 comments · Fixed by #2798
Assignees

Comments

@sentry-io
Copy link
sentry-io bot commented Apr 16, 2025
AttributeError: 'NoneType' object has no attribute 'options'
(1 additional frame(s) were not displayed)
...
  File "onadata/libs/utils/common_tools.py", line 177, in function_retry
    result = func(self, *args, **kwargs)
  File "onadata/libs/utils/export_tools.py", line 273, in generate_export
    export_builder.set_survey(xform.survey, xform, include_reviews=include_reviews)
  File "onadata/libs/utils/export_builder.py", line 680, in set_survey
    build_sections(
  File "onadata/libs/utils/export_builder.py", line 567, in build_sections
    choices = self._get_select_mulitples_choices(
  File "onadata/libs/utils/export_builder.py", line 451, in _get_select_mulitples_choices
    for c in child.choices.options
@ukanga ukanga self-assigned this Apr 16, 2025
@ukanga
Copy link
Member
ukanga commented Apr 16, 2025

This happens when the Pyxform Survey object is being restored from a JSON XLSForm that does not use the new structure. It is better to reprocess the original XLSForm and update the JSON representation.

Copy link
Author
sentry-io bot commented Apr 21, 2025

Sentry Issue: ONADATA-2Z

@ukanga
Copy link
Member
ukanga commented Apr 21, 2025

This happens when the Pyxform Survey object is being restored from a JSON XLSForm that does not use the new structure. It is better to reprocess the original XLSForm and update the JSON representation.

This might not always be the case, so we still need to handle it.

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

Successfully merging a pull request may close this issue.

1 participant
0