mirror of https://github.com/MISP/PyMISP
Add warning when failing to import dependencies
parent
2b1546ab43
commit
7b6276fbf8
|
@ -43,11 +43,13 @@ if six.PY2:
|
|||
try:
|
||||
from dateutil.parser import parse
|
||||
except ImportError:
|
||||
logger.exception("Cannot import dateutil")
|
||||
pass
|
||||
|
||||
try:
|
||||
import jsonschema
|
||||
except ImportError:
|
||||
logger.exception("Cannot import jsonschema")
|
||||
pass
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue