Page MenuHomeSoftware Heritage

indexer.metadata: Fix edge case on unknown origin
ClosedPublic

Authored by ardumont on Feb 25 2020, 2:56 PM.

Details

Summary

storage.origin_get can return None as origin. This adds the behavior to skip
those None origins instead of failing the indexing task.

Related https://sentry.softwareheritage.org/share/issue/8551b4a0ed694e09ad1ad7bde047e48f/

Test Plan

tox

Diff Detail

Repository
rDCIDX Metadata indexer
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.