doc: python bindings howto

* Fixed an error in the encryption try/except statement.
This commit is contained in:
Ben McGinnes 2018-03-13 05:42:50 +11:00
parent 0e1300ce77
commit 83b1336cee

View File

@ -414,7 +414,9 @@
for i in range(len(e.recipients)): for i in range(len(e.recipients)):
for n in range(len(rlogrus)): for n in range(len(rlogrus)):
if rlogrus[n].fpr == e.recipients[i].fpr: if rlogrus[n].fpr == e.recipients[i].fpr:
rlogrus.remove(e.recipients[i]) rlogrus.remove(rlogrus[n])
else:
pass
try: try:
cipher = c.encrypt(text, recipients=rlogrus, add_encrypt_to=True) cipher = c.encrypt(text, recipients=rlogrus, add_encrypt_to=True)
except: except: