mirror of https://github.com/MISP/PyMISP
Avoid error if pyme3 isn't installed
parent
419897aba0
commit
b8a391d263
|
@ -24,11 +24,12 @@ try:
|
||||||
from gpg.constants.sig import mode
|
from gpg.constants.sig import mode
|
||||||
has_pyme = True
|
has_pyme = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
try:
|
||||||
# pyme renamed to gpg the 2016-10-28
|
# pyme renamed to gpg the 2016-10-28
|
||||||
import pyme as gpg
|
import pyme as gpg
|
||||||
from pyme.constants.sig import mode
|
from pyme.constants.sig import mode
|
||||||
has_pyme = True
|
has_pyme = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
has_pyme = False
|
has_pyme = False
|
||||||
|
|
||||||
from .exceptions import PyMISPError, NewEventError, NewAttributeError
|
from .exceptions import PyMISPError, NewEventError, NewAttributeError
|
||||||
|
|
Loading…
Reference in New Issue