usnistgov / oar-pdr

The NIST Open Access to Research (OAR) Public Data Repository (PDR) system software
11 stars 10 forks source link

Preservation Service Bug Fix: prevent failure due to DOIResolutionException #97

Closed RayPlante closed 5 years ago

RayPlante commented 5 years ago

The Metadata/Preservation Service attempts to collect extra metadata about DOI references by resolving the DOIs. If there is a problem with the resolution (like the DOI does not exist), the service is supposed to just say "oh well" and move on. However, an undeclared in exception type (DOIResolutionException) in the "oh well" code block caused the service to fail. This PR corrects this problem to restore the service's "oh well" attitude.

RayPlante commented 5 years ago

Demonstrated fix under oar-docker demo locally.