doc: python bindings howto
* Fixed an error in the encryption try/except statement.
This commit is contained in:
parent
0e1300ce77
commit
83b1336cee
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user