Skip to content

Commit

Permalink
Fix error with pymisp in sigma2misp
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanplasma committed Sep 29, 2020
1 parent d7d9c0e commit cdbee4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/sigma/sigma2misp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import pathlib
import urllib3
urllib3.disable_warnings()
from pymisp import PyMISP
from pymisp import PyMISP, MISPEvent

def create_new_event(args, misp):
if hasattr(misp, "new_event"):
return misp.new_event(info=args.info)["Event"]["id"]

event = misp.MISPEvent()
event = MISPEvent()
event.info = args.info
return misp.add_event(event)["Event"]["id"]

Expand Down

0 comments on commit cdbee4b

Please sign in to comment.