Skip to content

Commit

Permalink
datacite: raise NotFound only in non test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva committed Oct 13, 2023
1 parent 17d5113 commit d4442d3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions invenio_rdm_records/services/pids/providers/datacite.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
from json import JSONDecodeError

from datacite import DataCiteRESTClient
from datacite.errors import DataCiteError, DataCiteNoContentError, DataCiteServerError, \
DataCiteNotFoundError
from datacite.errors import (
DataCiteError,
DataCiteNoContentError,
DataCiteNotFoundError,
DataCiteServerError,
)
from flask import current_app
from invenio_i18n import lazy_gettext as _
from invenio_pidstore.models import PIDStatus
Expand Down

0 comments on commit d4442d3

Please sign in to comment.