Skip to content

Commit

Permalink
Fix regression found in testing idaholab#336
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Mar 5, 2024
1 parent 80b6ec4 commit b0356c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shared/bin/zeek_threat_feed_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,9 @@ def ProcessMISP(
certainty = None

# determine if we're processing an event or an attribute
if 'info' in toParse:
if (('Event' in toParse) and isinstance(toParse['Event'], dict) and ('info' in toParse['Event'])) or (
'info' in toParse
):
# this is an event, which may contain an array of attributes
event = MISPEvent()
event.from_dict(**toParse)
Expand Down

0 comments on commit b0356c8

Please sign in to comment.