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:
|
try:
|
||||||
from dateutil.parser import parse
|
from dateutil.parser import parse
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
logger.exception("Cannot import dateutil")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import jsonschema
|
import jsonschema
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
logger.exception("Cannot import jsonschema")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue