From 47135ffdb923de66bc275a37e31811ad22c73dd7 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 4 Jun 2019 10:38:17 +0900 Subject: [PATCH] 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 --- NEWS | 4 +++- lang/python/src/errors.py | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 906ad608..72de5911 100644 --- a/NEWS +++ b/NEWS @@ -1,8 +1,10 @@ Noteworthy changes in version 1.13.1 (unreleased) ------------------------------------------------- + * Python: Fix DecryptionError Exception. [#4478] + * Python: No longer raises BadSignatures from - decrypt(verify=True). [4276] + decrypt(verify=True). [#4276] * cpp: gpgme_set_global_flag is now wrapped. [#4471] diff --git a/lang/python/src/errors.py b/lang/python/src/errors.py index 9c7f0378..5a58dea8 100644 --- a/lang/python/src/errors.py +++ b/lang/python/src/errors.py @@ -163,13 +163,13 @@ class InvalidRecipients(EncryptionError): for r in self.recipients) -class DeryptionError(GpgError): +class DecryptionError(GpgError): pass -class UnsupportedAlgorithm(DeryptionError): +class UnsupportedAlgorithm(DecryptionError): def __init__(self, algorithm, **kwargs): - DeryptionError.__init__(self, **kwargs) + DecryptionError.__init__(self, **kwargs) self.algorithm = algorithm def __str__(self):