diff --git a/harvester/harvest/__init__.py b/harvester/harvest/__init__.py index c48954c..fbdb99d 100644 --- a/harvester/harvest/__init__.py +++ b/harvester/harvest/__init__.py @@ -104,9 +104,12 @@ def get_source_records(self) -> Iterator[Record]: message = f"harvest type: '{self.harvest_type}' not recognized" raise ValueError(message) for record in records: + event = ( + record.source_record.event if record.source_record is not None else None + ) message = ( f"Record {record.identifier}: retrieved source record, event '" - f"{record.source_record.event}'" + f"{event}'" ) logger.debug(message) self.processed_records_count += 1