Skip to content

Commit

Permalink
names: log errors when fetching ORCiD records
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Dec 5, 2024
1 parent 53c1822 commit 7eb9280
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions invenio_vocabularies/contrib/names/datastreams.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ def _fetch_orcid_data(self, orcid_to_sync, bucket):
try:
return self.s3_client.read_file(f"s3://{bucket}/{key}")
except Exception:
# TODO: log
return None
current_app.logger.exception("Failed to fetch ORCiD record.")

def _process_lambda_file(self, fileobj):
"""Process the ORCiD lambda file and returns a list of ORCiDs to sync.
Expand Down

0 comments on commit 7eb9280

Please sign in to comment.