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.')
|
log.debug('Cannot import gnupg, using fallback.')
|
||||||
gnupg = None
|
gnupg = None
|
||||||
try:
|
try:
|
||||||
gnupg.GPG(gnupghome=None)
|
if gnupg:
|
||||||
|
gnupg.GPG(gnupghome=None)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
# This is the 'gnupg' library, not 'python-gnupg'.
|
# This is the 'gnupg' library, not 'python-gnupg'.
|
||||||
gnupg = None
|
gnupg = None
|
||||||
|
Loading…
Reference in New Issue
Block a user