File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 2222#### Collectors
2323- ` intelmq.bots.collectors.shadowserver.collector_reports_api.py ` :
2424 - Fixed behaviour if parameter ` types ` value is empty string, behave the same way as not set, not like no type.
25+ - ` intelmq.bots.collectors.misp ` : Use ` PyMISP ` class instead of deprecated ` ExpandedPyMISP ` (PR #2532 by Radek Vyhnal)
2526
2627#### Parsers
2728- ` intelmq.bots.parsers.shadowserver._config ` :
3233#### Experts
3334- ` intelmq.bots.experts.securitytxt ` :
3435 - Added new bot (PR #2538 by Frank Westers and Sebastian Wagner)
36+ - ` intelmq.bots.experts.misp ` : Use ` PyMISP ` class instead of deprecated ` ExpandedPyMISP ` (PR #2532 by Radek Vyhnal)
3537
3638#### Outputs
3739- ` intelmq.bots.outputs.cif3.output ` :
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