google / google/osv.dev

Unhandled exception in sources.py causing crash under specific conditions

Open
#3,498 2 comments 0 reactions 1 assignee Claimed by @another-rex View on GitHub
cleanup infra needs-gcp-infra-access techdebt
Dominant language
Go
Stars
2.9k
Forks
369
Avg merge
1d 17h
Merged PRs (30d)
149

Description

**Describe the bug**
Due to an unhandled exception in the importer/sources.py file, when the schema validation of a file fails, the cron job was being killed.
https://github.com/google/osv.dev/blob/7efca9136ce630a25f2a754d4b18148b0e0b8c4d/osv/sources.py\#L169C2-L173C12
This was noticed as the prefix of a new data source was missing from the schema.

**Screenshots**
![Image](https://github.com/user-attachments/assets/e71137ed-0c37-4757-be26-2e31e5e50ea7)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.