From 7a4fe82a017b751ad756c93d2b9e31d7be045275 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 3 Dec 2020 11:35:24 +0900 Subject: [PATCH] python: Fix key_export*. * lang/python/src/core.py (key_export): Just raise an error. (key_export_minimal, key_export_secret): Ditto. -- GnuPG-bug-id: 5149 Fixes-commit: 7faef33d13fa8efce152ca7aa6e9d39030c1cf08 Signed-off-by: NIIBE Yutaka --- lang/python/src/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/python/src/core.py b/lang/python/src/core.py index 646bbc60..5e57e4a0 100644 --- a/lang/python/src/core.py +++ b/lang/python/src/core.py @@ -637,7 +637,7 @@ class Context(GpgmeWrapper): data.seek(0, os.SEEK_SET) pk_result = data.read() except GPGMEError as e: - pk_result = e + raise e if len(pk_result) > 0: result = pk_result @@ -672,7 +672,7 @@ class Context(GpgmeWrapper): data.seek(0, os.SEEK_SET) pk_result = data.read() except GPGMEError as e: - pk_result = e + raise e if len(pk_result) > 0: result = pk_result @@ -713,7 +713,7 @@ class Context(GpgmeWrapper): data.seek(0, os.SEEK_SET) sk_result = data.read() except GPGMEError as e: - sk_result = e + raise e if len(sk_result) > 0: result = sk_result