Skip to content

Commit 93790df

Browse files
kamil-certatsebix
authored andcommitted
Adjust to pycodestyle
1 parent 26f161f commit 93790df

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
@@ -262,8 +262,8 @@ def _extract_misp_attribute_kwargs(self, message: dict, definition: dict) -> dic
262262
for parameter, value in definition.items():
263263
# Check if the value is a harmonization key or a static value
264264
if isinstance(value, str) and (
265-
value in self.harmonization["event"]
266-
or value.split(".", 1)[0] in self.harmonization["event"]
265+
value in self.harmonization["event"] or
266+
value.split(".", 1)[0] in self.harmonization["event"]
267267
):
268268
result[parameter] = message.get(value)
269269
else:
@@ -332,8 +332,8 @@ def check(parameters):
332332
sanity_event = Event({})
333333
event_separator = parameters.get("event_separator")
334334
if (
335-
event_separator
336-
and not sanity_event._Message__is_valid_key(event_separator)[0]
335+
event_separator and not
336+
sanity_event._Message__is_valid_key(event_separator)[0]
337337
):
338338
results.append(
339339
[
@@ -398,8 +398,8 @@ def check(parameters):
398398
"error",
399399
(
400400
"Parameter 'tagging' has to be a dictionary with keys as '__all__' "
401-
"or possible 'event_separator' values. Each dictionary value "
402-
+ tagging_error,
401+
"or possible 'event_separator' values. Each dictionary value " +
402+
tagging_error,
403403
),
404404
]
405405
)

0 commit comments

Comments
 (0)