bigscience-workshop / bigscience-workshop/data_sourcing

[Bug] Error Validating when Primary source type is other

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
31
Forks
6
PR merge metrics
No merged PRs in 30d

Description

When we tried to validate an entry for which the primary source type is other, for instance, Newspaper, we get the following error:
Screen Shot 2021-10-28 at 8 24 11 PM

```python
ValueError: 'Newspaper' is not in list
Traceback:
File "/home/yacine/.local/lib/python3.7/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/home/yacine/Code/data_sourcing/sourcing_sprint/app.py", line 380, in
main()
File "/home/yacine/Code/data_sourcing/sourcing_sprint/app.py", line 99, in main
pages[app_mode](submission_info_dict)
File "/home/yacine/Code/data_sourcing/sourcing_sprint/app.py", line 305, in val_page
form_source_category(entry_dict, app_categories, "val")
File "/home/yacine/Code/data_sourcing/sourcing_sprint/catalogue/catalogue_forms.py", line 909, in form_source_category
if mode == "val"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.