fix: Do not fail if extract_msg is missing

pull/681/head
Raphaël Vinot 2021-01-11 14:57:22 +01:00
parent fa95c9d84f
commit de6125a623
1 changed files with 7 additions and 1 deletions

View File

@ -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: