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

Handle cases where export types are uppercased #2269

Open
sentryk8sonalabsorg bot opened this issue Jun 22, 2022 · 0 comments
Open

Handle cases where export types are uppercased #2269

sentryk8sonalabsorg bot opened this issue Jun 22, 2022 · 0 comments

Comments

@sentryk8sonalabsorg
Copy link

Sentry Issue: ONADATA-SQ

KeyError: 'CSV'
  File "django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "onadata/apps/viewer/views.py", line 540, in export_list
    "export_type_name": Export.EXPORT_TYPE_DICT[export_type],

This seems like something that can be handled either by having the input be lower cased before trying to retrieve the type perhaps ?

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

0 participants