From 83b1336ceebb86e13a55bbf220df2d750f6b3ec6 Mon Sep 17 00:00:00 2001 From: Ben McGinnes Date: Tue, 13 Mar 2018 05:42:50 +1100 Subject: [PATCH] doc: python bindings howto * Fixed an error in the encryption try/except statement. --- lang/python/docs/GPGMEpythonHOWTOen.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/python/docs/GPGMEpythonHOWTOen.org b/lang/python/docs/GPGMEpythonHOWTOen.org index 84be8513..22b47cca 100644 --- a/lang/python/docs/GPGMEpythonHOWTOen.org +++ b/lang/python/docs/GPGMEpythonHOWTOen.org @@ -414,7 +414,9 @@ for i in range(len(e.recipients)): for n in range(len(rlogrus)): if rlogrus[n].fpr == e.recipients[i].fpr: - rlogrus.remove(e.recipients[i]) + rlogrus.remove(rlogrus[n]) + else: + pass try: cipher = c.encrypt(text, recipients=rlogrus, add_encrypt_to=True) except: