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: 'content' #10

Open
SabineHaas opened this issue Nov 20, 2024 · 1 comment
Open

KeyError: 'content' #10

SabineHaas opened this issue Nov 20, 2024 · 1 comment

Comments

@SabineHaas
Copy link

When trying to upload results data with results.py I get an error in the following line, as "content" does not exists in data when the table does not exist, yet.

if data["content"]["rowcount"] == 0:

I just exchanged the line with if "not found" in data["reason"]: to make it work for me right now. This is not a proposal for a fix.

@SabineHaas
Copy link
Author

I got this error message as my upload file was not named sedos_results.csv.
sedos_results table already exists on OEP, which is why 'content' will always exist in data.
Would be nice to add an error message "Check that your file is named..."

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