diff --git a/intelmq/bots/outputs/misp/output_feed.py b/intelmq/bots/outputs/misp/output_feed.py index 9d56f097d..beb0ded5f 100644 --- a/intelmq/bots/outputs/misp/output_feed.py +++ b/intelmq/bots/outputs/misp/output_feed.py @@ -263,8 +263,8 @@ def _extract_misp_attribute_kwargs(self, message: dict, definition: dict) -> dic for parameter, value in definition.items(): # Check if the value is a harmonization key or a static value if isinstance(value, str) and ( - value in self.harmonization["event"] - or value.split(".", 1)[0] in self.harmonization["event"] + value in self.harmonization["event"] or + value.split(".", 1)[0] in self.harmonization["event"] ): result[parameter] = message.get(value) else: @@ -333,8 +333,8 @@ def check(parameters): sanity_event = Event({}) event_separator = parameters.get("event_separator") if ( - event_separator - and not sanity_event._Message__is_valid_key(event_separator)[0] + event_separator and not + sanity_event._Message__is_valid_key(event_separator)[0] ): results.append( [ @@ -399,8 +399,8 @@ def check(parameters): "error", ( "Parameter 'tagging' has to be a dictionary with keys as '__all__' " - "or possible 'event_separator' values. Each dictionary value " - + tagging_error, + "or possible 'event_separator' values. Each dictionary value " + + tagging_error, ), ] )