RockefellerArchiveCenter/fornax

Add function to clean up when packaging routine fails

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.

Failures in the SIPAssembler result in binaries being left in places which cause problems.

Describe the solution you'd like

Add a cleanup function (which gets called when exceptions are thrown) that removes any temporary binaries and resets state so that the routine can run cleanly next time.