Page MenuHomeSoftware Heritage

validate: ensure StorageArgumentException is always encodable
ClosedPublic

Authored by douardda on Mar 27 2020, 4:10 PM.

Details

Summary

by embeding a string representation of the original Exception as
StorageArgumentException args instead of the original exc.args
since this can contain any python (possibli non-serializable) object.

This is needed e.g. when swh.model has runtime type validation.

Depends on D2909.

Diff Detail

Repository
rDSTO Storage manager
Branch
valid2
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 11423
Build 17300: tox-on-jenkinsJenkins
Build 17299: arc lint + arc unit