mirror of https://github.com/MISP/PyMISP
fix: Do not fail if extract_msg is missing
parent
fa95c9d84f
commit
de6125a623
|
@ -11,7 +11,6 @@ from .domainipobject import DomainIPObject # noqa
|
|||
from .asnobject import ASNObject # noqa
|
||||
from .geolocationobject import GeolocationObject # noqa
|
||||
from .git_vuln_finder_object import GitVulnFinderObject # noqa
|
||||
from .emailobject import EMailObject # noqa
|
||||
|
||||
from .vehicleobject import VehicleObject # noqa
|
||||
from .csvloader import CSVLoader # noqa
|
||||
|
@ -19,6 +18,13 @@ from .sshauthkeyobject import SSHAuthorizedKeysObject # noqa
|
|||
from .feed import feed_meta_generator # noqa
|
||||
from .update_objects import update_objects # noqa
|
||||
|
||||
try:
|
||||
from .emailobject import EMailObject # noqa
|
||||
except ImportError:
|
||||
# Requires 'extract_msg', "RTFDE", "oletools"
|
||||
# pymisp needs to be installed with the email parameter
|
||||
pass
|
||||
|
||||
try:
|
||||
from .urlobject import URLObject # noqa
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in New Issue