Fix import of supybot.gpg if gnupg is not available.

This commit is contained in:
Valentin Lorentz 2013-11-02 06:17:51 +00:00
parent cc9f1f0a2c
commit 0876bb345c

View File

@ -41,6 +41,7 @@ except ImportError:
log.debug('Cannot import gnupg, using fallback.')
gnupg = None
try:
if gnupg:
gnupg.GPG(gnupghome=None)
except TypeError:
# This is the 'gnupg' library, not 'python-gnupg'.