mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Fix import of supybot.gpg if gnupg is not available.
This commit is contained in:
parent
cc9f1f0a2c
commit
0876bb345c
@ -41,7 +41,8 @@ except ImportError:
|
||||
log.debug('Cannot import gnupg, using fallback.')
|
||||
gnupg = None
|
||||
try:
|
||||
gnupg.GPG(gnupghome=None)
|
||||
if gnupg:
|
||||
gnupg.GPG(gnupghome=None)
|
||||
except TypeError:
|
||||
# This is the 'gnupg' library, not 'python-gnupg'.
|
||||
gnupg = None
|
||||
|
Loading…
Reference in New Issue
Block a user