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

KeyError: 'label' #1629

Closed
lincmba opened this issue Jun 13, 2019 · 0 comments · Fixed by #1635
Closed

KeyError: 'label' #1629

lincmba opened this issue Jun 13, 2019 · 0 comments · Fixed by #1635

Comments

@lincmba
Copy link
Contributor

lincmba commented Jun 13, 2019

https://sentry.onalabs.org/ona/onadata/issues/70958/

KeyError: 'label'
(1 additional frame(s) were not displayed)
...
  File "onadata/libs/utils/common_tools.py", line 176, in function_retry
    result = func(self, *args, **kwargs)
  File "onadata/libs/utils/export_tools.py", line 212, in generate_export
    total_records=total_records
  File "onadata/libs/utils/export_builder.py", line 1185, in to_zipped_sav
    sav_options = self._get_sav_options(section['elements'])
  File "onadata/libs/utils/export_builder.py", line 1097, in _get_sav_options
    all_value_labels = self._get_sav_value_labels(xpath_var_names)
  File "onadata/libs/utils/export_builder.py", line 1017, in _get_sav_value_labels
    label = self.get_choice_label_from_dict(choice['label'])

KeyError: 'label'

Aha! Link: https://ona.aha.io/features/PROD-243

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 a pull request may close this issue.

3 participants