File tree 3 files changed +9
-10
lines changed
3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 22
22
#### Collectors
23
23
- ` intelmq.bots.collectors.shadowserver.collector_reports_api.py ` :
24
24
- 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)
25
26
26
27
#### Parsers
27
28
- ` intelmq.bots.parsers.shadowserver._config ` :
32
33
#### Experts
33
34
- ` intelmq.bots.experts.securitytxt ` :
34
35
- 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)
35
37
36
38
#### Outputs
37
39
- ` intelmq.bots.outputs.cif3.output ` :
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