This commit is contained in:
@@ -127,9 +127,12 @@ class GPG(object):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
self.gpg = gnupg.GPG(**kwargs)
|
self.gpg = gnupg.GPG(**kwargs)
|
||||||
|
except OSError as exception:
|
||||||
|
raise GPGException('ERROR: GPG initialization error; Make sure the GPG binary is properly installed; %s' % exception)
|
||||||
except Exception as exception:
|
except Exception as exception:
|
||||||
raise GPGException('ERROR: GPG initialization error; %s' % exception)
|
raise GPGException('ERROR: GPG initialization error; %s' % exception)
|
||||||
|
|
||||||
|
|
||||||
def verify_file(self, file_input, detached_signature=None, fetch_key=False):
|
def verify_file(self, file_input, detached_signature=None, fetch_key=False):
|
||||||
"""
|
"""
|
||||||
Verify the signature of a file.
|
Verify the signature of a file.
|
||||||
|
|||||||
Reference in New Issue
Block a user