correctly check if python-gnupg is installed

This commit is contained in:
Yann Leboulanger 2016-12-17 13:31:37 +01:00
parent 638843ba08
commit 58341e9742

View file

@ -162,7 +162,7 @@ except ImportError:
HAVE_GPG = True HAVE_GPG = True
GPG_BINARY = 'gpg' GPG_BINARY = 'gpg'
try: try:
__import__('gnupg', globals(), locals(), [], 0) __import__('gnupg')
except ImportError: except ImportError:
HAVE_GPG = False HAVE_GPG = False
else: else: