[Florob] Don't return non-existant variables. Fixes #5856
This commit is contained in:
parent
91a28dc1ef
commit
ed7eec3798
|
@ -543,6 +543,7 @@ class JingleSession(object):
|
||||||
'security-error', 'timeout', 'unsupported-applications',
|
'security-error', 'timeout', 'unsupported-applications',
|
||||||
'unsupported-transports']
|
'unsupported-transports']
|
||||||
tag = stanza.getTag('reason')
|
tag = stanza.getTag('reason')
|
||||||
|
text = ''
|
||||||
if tag:
|
if tag:
|
||||||
text = tag.getTagData('text')
|
text = tag.getTagData('text')
|
||||||
for r in reasons:
|
for r in reasons:
|
||||||
|
|
Loading…
Reference in New Issue