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 2525from intelmq .lib .exceptions import MissingDependencyError
2626
2727try :
28- try :
29- from pymisp import ExpandedPyMISP as PyMISP
30- except ImportError :
31- from pymisp import PyMISP
28+ from pymisp import PyMISP
3229except ImportError :
3330 PyMISP = None
3431 import_fail_reason = 'import'
Original file line number Diff line number Diff line change 1717from intelmq .lib .exceptions import MissingDependencyError
1818
1919try :
20- from pymisp import ExpandedPyMISP
20+ from pymisp import PyMISP
2121except ImportError :
22- ExpandedPyMISP = None
22+ PyMISP = None
2323
2424
2525class MISPExpertBot (ExpertBot ):
@@ -28,13 +28,13 @@ class MISPExpertBot(ExpertBot):
2828 misp_url : str = "<insert url of MISP server (with trailing '/')>"
2929
3030 def init (self ):
31- if ExpandedPyMISP is None :
31+ if PyMISP is None :
3232 raise MissingDependencyError ('pymisp' , '>=2.4.117.3' )
3333
3434 # 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 )
3838
3939 def process (self ):
4040 event = self .receive_message ()
You can’t perform that action at this time.
0 commit comments