python: Fix typo in DecryptionError exception.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 4 Jun 2019 01:38:17 +0000 (10:38 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 4 Jun 2019 01:38:17 +0000 (10:38 +0900)
* 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>
NEWS
lang/python/src/errors.py

diff --git a/NEWS b/NEWS
index 906ad60..72de591 100644 (file)
--- 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]
index 9c7f037..5a58dea 100644 (file)
@@ -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):