mirror of https://github.com/MISP/PyMISP
fix: Properly catch error if reportlab isn't installed
parent
2e93aad34a
commit
3e64a7b03d
|
@ -47,7 +47,7 @@ try:
|
||||||
# Let's not bother with python 2
|
# Let's not bother with python 2
|
||||||
try:
|
try:
|
||||||
from .tools import reportlab_generator # noqa
|
from .tools import reportlab_generator # noqa
|
||||||
except ImportError:
|
except NameError:
|
||||||
# FIXME: The import should not raise an exception if reportlab isn't installed
|
# FIXME: The import should not raise an exception if reportlab isn't installed
|
||||||
pass
|
pass
|
||||||
if sys.version_info >= (3, 6):
|
if sys.version_info >= (3, 6):
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -41,7 +41,7 @@ setup(
|
||||||
],
|
],
|
||||||
install_requires=['six', 'requests', 'python-dateutil', 'jsonschema',
|
install_requires=['six', 'requests', 'python-dateutil', 'jsonschema',
|
||||||
'python-dateutil', 'enum34;python_version<"3.4"',
|
'python-dateutil', 'enum34;python_version<"3.4"',
|
||||||
'functools32;python_version<"3.0"', 'reportlab'],
|
'functools32;python_version<"3.0"'],
|
||||||
extras_require={'fileobjects': ['lief>=0.8', 'python-magic'],
|
extras_require={'fileobjects': ['lief>=0.8', 'python-magic'],
|
||||||
'neo': ['py2neo'],
|
'neo': ['py2neo'],
|
||||||
'openioc': ['beautifulsoup4'],
|
'openioc': ['beautifulsoup4'],
|
||||||
|
|
Loading…
Reference in New Issue