diff options
| author | NIIBE Yutaka <[email protected]> | 2020-12-03 02:35:24 +0000 | 
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2020-12-03 02:35:24 +0000 | 
| commit | 7a4fe82a017b751ad756c93d2b9e31d7be045275 (patch) | |
| tree | 33f78a8c35018079f34478e32f77593c1f700256 /lang/python/src/core.py | |
| parent | core: Call _gpgme_passphrase_status_handler when exporting keys. (diff) | |
| download | gpgme-7a4fe82a017b751ad756c93d2b9e31d7be045275.tar.gz gpgme-7a4fe82a017b751ad756c93d2b9e31d7be045275.zip | |
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 <[email protected]>
Diffstat (limited to 'lang/python/src/core.py')
| -rw-r--r-- | lang/python/src/core.py | 6 | 
1 files 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 | 
