Skip to content

Commit

Permalink
Merge pull request SigmaHQ#1026 from ryanplasma/fix-pymisp-error
Browse files Browse the repository at this point in the history
Fix error with pymisp in sigma2misp
  • Loading branch information
thomaspatzke authored Oct 12, 2020
2 parents d30502c + cdbee4b commit e8cdd47
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 e8cdd47

Please sign in to comment.