data_sourcing icon indicating copy to clipboard operation
data_sourcing copied to clipboard

[Bug] Error Validating when Primary source type is other

Open pjox opened this issue 4 years ago • 0 comments

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

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 <module>
    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"

pjox avatar Oct 28 '21 18:10 pjox