Skip to content

Commit 2c9f753

Browse files
kamil-certatsebix
authored andcommitted
Fix handling no event in harmonisation
1 parent e8d6bee commit 2c9f753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intelmq/lib/upgrades.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ def v341_new_fields(configuration, harmonization, dry_run, **kwargs):
981981
Add new fields to IntelMQ Data Format
982982
"""
983983
changed = False
984-
if "severity" not in harmonization["event"]:
984+
if "event" in harmonization and "severity" not in harmonization["event"]:
985985
harmonization["event"]["severity"] = {
986986
"description": "Severity of the event, based on the information from the source, and eventually modified by IntelMQ during processing. Meaning of the levels may differ based on the event source.",
987987
"length": 10,

0 commit comments

Comments
 (0)