20ca854 frontend: access chroots more safely to avoid KeyError

1 file Authored by frostyx 3 years ago, Committed by praiskup 3 years ago,
    frontend: access chroots more safely to avoid KeyError
    
    I think we don't have any pagure issue for this, addressing:
    
        File "/usr/share/copr/coprs_frontend/coprs/views/apiv3_ns/apiv3_projects.py", line 51, in validate_chroots
          inserted = set(input["chroots"] or [])
        KeyError: 'chroots'