Skip to content

Commit

Permalink
Adjust to pycodestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-certat committed Jul 16, 2024
1 parent 7c33962 commit 05f4aef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions intelmq/bots/outputs/misp/output_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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(
[
Expand Down Expand Up @@ -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,
),
]
)
Expand Down

0 comments on commit 05f4aef

Please sign in to comment.