Page MenuHomeSoftware Heritage

Pass ObjNotFoundErr as a 404 error rather than 500
ClosedPublic

Authored by olasd on Oct 20 2017, 4:07 PM.

Details

Summary

objstorage_testing: ensure consistency in ObjNotFoundErrors
This should reduce logging when using deployed gunicorn

Test Plan

tests still pass

Diff Detail

Repository
rDOBJS Object storage
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 1055
Build 1390: arc lint + arc unit

Event Timeline

#swh-devel discussion:

16:08:01 <+olasd> seirl: https://forge.softwareheritage.org/D257
16:10:31 <+seirl> i don't like the fact that the client API can't differenciate between None and not found
16:10:40 <+olasd> me neither
16:10:44 <+seirl> but it's not because of this diff, so, yeah...
16:10:49 <+olasd> exactly
16:11:05 <+seirl> maybe just add a # TODO before pushing?
16:11:17 <+olasd> well it's not a todo for this repo
16:11:28 <+olasd> our RPC stuff is bad and I should feel bad
This revision was automatically updated to reflect the committed changes.