Page MenuHomeSoftware Heritage

Unify exception raised by invalid input to API endpoints.
ClosedPublic

Authored by vlorentz on Feb 5 2020, 6:39 PM.

Details

Reviewers
ardumont
Group Reviewers
Reviewers
Summary

This is a first step toward not pickling exceptions.

Depends on D2626.

Diff Detail

Repository
rDSTO Storage manager
Branch
unify-error
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 10463
Build 15589: tox-on-jenkinsJenkins
Build 15588: arc lint + arc unit

Event Timeline

swh/storage/retry.py
22–48

Note that I changed this function to retry all errors that aren't related to argument validation

vlorentz retitled this revision from [WIP] Unify exception raised by invalid input to API endpoints. to Unify exception raised by invalid input to API endpoints..Feb 6 2020, 12:09 PM

Convert validation exceptions raised by postgresql

This revision is now accepted and ready to land.Feb 7 2020, 3:00 AM

Landed as 638363763aa8250e28f44a215ffce8450aa378b9.