[Florob] Don't return non-existant variables. Fixes #5856

This commit is contained in:
Yann Leboulanger 2010-08-18 08:35:32 +02:00
parent 91a28dc1ef
commit ed7eec3798
1 changed files with 1 additions and 0 deletions

View File

@ -543,6 +543,7 @@ class JingleSession(object):
'security-error', 'timeout', 'unsupported-applications',
'unsupported-transports']
tag = stanza.getTag('reason')
text = ''
if tag:
text = tag.getTagData('text')
for r in reasons: