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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.