Skip to content

Commit 246e181

Browse files
committed
Adjust to pycodestyle
1 parent b8cc4fb commit 246e181

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

intelmq/bots/outputs/misp/output_feed.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ def _extract_misp_attribute_kwargs(self, message: dict, definition: dict) -> dic
263263
for parameter, value in definition.items():
264264
# Check if the value is a harmonization key or a static value
265265
if isinstance(value, str) and (
266-
value in self.harmonization["event"]
267-
or value.split(".", 1)[0] in self.harmonization["event"]
266+
value in self.harmonization["event"] or
267+
value.split(".", 1)[0] in self.harmonization["event"]
268268
):
269269
result[parameter] = message.get(value)
270270
else:
@@ -333,8 +333,8 @@ def check(parameters):
333333
sanity_event = Event({})
334334
event_separator = parameters.get("event_separator")
335335
if (
336-
event_separator
337-
and not sanity_event._Message__is_valid_key(event_separator)[0]
336+
event_separator and not
337+
sanity_event._Message__is_valid_key(event_separator)[0]
338338
):
339339
results.append(
340340
[
@@ -399,8 +399,8 @@ def check(parameters):
399399
"error",
400400
(
401401
"Parameter 'tagging' has to be a dictionary with keys as '__all__' "
402-
"or possible 'event_separator' values. Each dictionary value "
403-
+ tagging_error,
402+
"or possible 'event_separator' values. Each dictionary value " +
403+
tagging_error,
404404
),
405405
]
406406
)

0 commit comments

Comments
 (0)