diff --git a/invenio_record_importer_kcworks/services/records.py b/invenio_record_importer_kcworks/services/records.py index 5ded240..acc0bd9 100644 --- a/invenio_record_importer_kcworks/services/records.py +++ b/invenio_record_importer_kcworks/services/records.py @@ -41,12 +41,10 @@ compare_metadata, ) from invenio_records.systemfields.relations.errors import InvalidRelationValue -from invenio_records_resources.services.records.errors import ( - NoResultFound, -) from invenio_search.proxies import current_search_client from marshmallow.exceptions import ValidationError from pprint import pformat +from sqlalchemy.orm.exc import NoResultFound from typing import Optional