When testing the OAI importer on Adventist valkyrie, we received the following error. The error was caused because oai imports from a feed, so no original file exists. When checking, instead of returning false it returned nil, and thus caused a TypeError.
Summary
When testing the OAI importer on Adventist valkyrie, we received the following error. The error was caused because oai imports from a feed, so no original file exists. When checking, instead of returning false it returned nil, and thus caused a TypeError.
related:
Screenshots / Video
BEFORE
AFTER
Expected Behavior
The site will not break when an original file doesn't exist.
Notes
:bug: Refactor: Fix file path access to prevent error
970ad45906b1db6f02f19679f723318da4c22418