aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/src
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-09-30 09:32:45 +0000
committerBen McGinnes <[email protected]>2018-09-30 09:32:45 +0000
commit837a4760533e80f075cd727f18354904b8a54132 (patch)
treec9795339a214d6b2aa5f0eba0b84ae7e5c40224b /lang/python/src
parentpython bindings: ctx.decrypt (diff)
downloadgpgme-837a4760533e80f075cd727f18354904b8a54132.tar.gz
gpgme-837a4760533e80f075cd727f18354904b8a54132.zip
python bindings: fixing decrypt-verify
* lang/python/src/core.py: First restoring the exception to the being just that. * The means to manipulate the error output is temporarily in commented out code, but ought to be added to a proper test later. * In the mean time the original test, with a very slight change, works again. Tested-by: Ben McGinnes <[email protected]> Signed-off-by: Ben McGinnes <[email protected]>
Diffstat (limited to 'lang/python/src')
-rw-r--r--lang/python/src/core.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/lang/python/src/core.py b/lang/python/src/core.py
index 17ec0ef1..6e925925 100644
--- a/lang/python/src/core.py
+++ b/lang/python/src/core.py
@@ -450,10 +450,11 @@ class Context(GpgmeWrapper):
try:
raise errors.MissingSignatures(verify_result, missing,
results=results)
- except errors.MissingSignatures as miss_e:
- mse = miss_e
- mserr = "gpg.errors.MissingSignatures:"
- print(mserr, miss_e, "\n")
+ except errors.MissingSignatures as e:
+ raise e
+ # mse = e
+ # mserr = "gpg.errors.MissingSignatures:"
+ # print(mserr, miss_e, "\n")
# # The full details can then be found in mse.results,
# # mse.result, mse.missing if necessary.
# mse_list = []
@@ -468,7 +469,7 @@ class Context(GpgmeWrapper):
# msl.append(user.email)
# # msl.append(user.uid)
# print(" ".join(msl))
- return mse
+ # raise mse
return results