File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 25
25
from intelmq .lib .exceptions import MissingDependencyError
26
26
27
27
try :
28
- try :
29
- from pymisp import ExpandedPyMISP as PyMISP
30
- except ImportError :
31
- from pymisp import PyMISP
28
+ from pymisp import PyMISP
32
29
except ImportError :
33
30
PyMISP = None
34
31
import_fail_reason = 'import'
Original file line number Diff line number Diff line change 17
17
from intelmq .lib .exceptions import MissingDependencyError
18
18
19
19
try :
20
- from pymisp import ExpandedPyMISP
20
+ from pymisp import PyMISP
21
21
except ImportError :
22
- ExpandedPyMISP = None
22
+ PyMISP = None
23
23
24
24
25
25
class MISPExpertBot (ExpertBot ):
@@ -28,13 +28,13 @@ class MISPExpertBot(ExpertBot):
28
28
misp_url : str = "<insert url of MISP server (with trailing '/')>"
29
29
30
30
def init (self ):
31
- if ExpandedPyMISP is None :
31
+ if PyMISP is None :
32
32
raise MissingDependencyError ('pymisp' , '>=2.4.117.3' )
33
33
34
34
# Initialize MISP connection
35
- self .misp = ExpandedPyMISP (self .misp_url ,
36
- self .misp_key ,
37
- self .http_verify_cert )
35
+ self .misp = PyMISP (self .misp_url ,
36
+ self .misp_key ,
37
+ self .http_verify_cert )
38
38
39
39
def process (self ):
40
40
event = self .receive_message ()
You can’t perform that action at this time.
0 commit comments