python: Fix typo in DecryptionError exception.

* lang/python/src/errors.py (DecryptionError): Rename from
DeryptionError.
(UnsupportedAlgorithm): Use DecryptionError.

--

GnuPG-bug-id: 4478
Reported-by: Jan Girlich
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2019-06-04 10:38:17 +09:00
parent 49883023f6
commit 47135ffdb9
2 changed files with 6 additions and 4 deletions

4
NEWS
View File

@ -1,8 +1,10 @@
Noteworthy changes in version 1.13.1 (unreleased) Noteworthy changes in version 1.13.1 (unreleased)
------------------------------------------------- -------------------------------------------------
* Python: Fix DecryptionError Exception. [#4478]
* Python: No longer raises BadSignatures from * Python: No longer raises BadSignatures from
decrypt(verify=True). [4276] decrypt(verify=True). [#4276]
* cpp: gpgme_set_global_flag is now wrapped. * cpp: gpgme_set_global_flag is now wrapped.
[#4471] [#4471]

View File

@ -163,13 +163,13 @@ class InvalidRecipients(EncryptionError):
for r in self.recipients) for r in self.recipients)
class DeryptionError(GpgError): class DecryptionError(GpgError):
pass pass
class UnsupportedAlgorithm(DeryptionError): class UnsupportedAlgorithm(DecryptionError):
def __init__(self, algorithm, **kwargs): def __init__(self, algorithm, **kwargs):
DeryptionError.__init__(self, **kwargs) DecryptionError.__init__(self, **kwargs)
self.algorithm = algorithm self.algorithm = algorithm
def __str__(self): def __str__(self):