prevent traceback when negociating E2E. see #5015

This commit is contained in:
Yann Leboulanger 2009-05-17 17:59:00 +02:00
parent 17068c0a50
commit c48f4c409f
1 changed files with 4 additions and 1 deletions

View File

@ -886,7 +886,10 @@ class EncryptedStanzaSession(StanzaSession):
srses = secrets.secrets().retained_secrets(self.conn.name,
self.jid.getStripped())
srshash = base64.b64decode(form.getField('srshash'))
try:
srshash = base64.b64decode(form['srshash'])
except IndexError:
return
for s in srses:
secret = s[0]