mirror of https://github.com/MISP/MISP
fix: [stix import] Fixed backward compatibility of an exception
parent
7edf66a1aa
commit
8d0b62c4bf
|
@ -29,7 +29,7 @@ from stix.core import STIXPackage
|
|||
from collections import defaultdict
|
||||
try:
|
||||
import stix_edh
|
||||
except (ModuleNotFoundError, ImportError):
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
_MISP_dir = "/".join([p for p in os.path.dirname(os.path.realpath(__file__)).split('/')[:-3]])
|
||||
|
|
Loading…
Reference in New Issue