diff --git a/intelmq/lib/bot.py b/intelmq/lib/bot.py index 49591f9a1..4325ecbb9 100644 --- a/intelmq/lib/bot.py +++ b/intelmq/lib/bot.py @@ -1127,7 +1127,7 @@ def _get_io_and_save_line_ending(self, raw: str) -> io.StringIO: if not self._line_ending or isinstance(self._line_ending, tuple): self._line_ending = '\r\n' return data_io - + def new_event(self, *args, **kwargs): if self.copy_collector_provided_fields: kwargs['copy_collector_provided_fields'] = self.copy_collector_provided_fields diff --git a/intelmq/lib/message.py b/intelmq/lib/message.py index 603bcd281..bdbf921d2 100644 --- a/intelmq/lib/message.py +++ b/intelmq/lib/message.py @@ -555,7 +555,7 @@ def __init__( template['rtir_id'] = message['rtir_id'] if 'time.observation' in message: template['time.observation'] = message['time.observation'] - + if copy_collector_provided_fields: for key in copy_collector_provided_fields: if key not in message: