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