mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
gpg: Disable use of incompatible library 'gnupg'.
This commit is contained in:
parent
5846059c3f
commit
3f150e12e7
@ -40,6 +40,11 @@ except ImportError:
|
||||
# it is available. Otherwise, we just don't allow user auth through GPG.
|
||||
log.debug('Cannot import gnupg, using fallback.')
|
||||
gnupg = None
|
||||
try:
|
||||
gnupg.GPG(gnupghome=None)
|
||||
except TypeError:
|
||||
# This is the 'gnupg' library, not 'python-gnupg'.
|
||||
gnupg = None
|
||||
|
||||
available = (gnupg is not None)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user