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