Page MenuHomeSoftware Heritage

Handle ObjNotFoundError and Error as client errors instead of server errors.
ClosedPublic

Authored by vlorentz on Feb 18 2020, 1:39 PM.

Details

Summary

Meaning that:

  • server should raise 400 on these errors instead of 500
  • client should catch them and re-raise them.
Test Plan

Tests will fail because this diff depends on D2687.

Diff Detail

Repository
rDOBJS Object storage
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 10665
Build 15985: tox-on-jenkinsJenkins
Build 15984: arc lint + arc unit

Event Timeline

anlambert added a subscriber: anlambert.
anlambert added inline comments.
swh/objstorage/api/client.py
1

2020

swh/objstorage/api/server.py
1

2020

This revision is now accepted and ready to land.Feb 18 2020, 1:51 PM