From f49f8163a620dfa005dc4176a9c7d888eb5f31cd Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 2 Jul 2011 00:52:35 +0200 Subject: [PATCH] prevent traceback when using normal socks5 FT --- src/gui_interface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui_interface.py b/src/gui_interface.py index 384e3cdfd..080ec6297 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -922,7 +922,8 @@ class Interface: jid = unicode(file_props['receiver']) # End jingle session - if file_props['session-type'] == 'jingle' and file_props['type'] == 'r': + if file_props.get('session-type') == 'jingle' and file_props['type'] ==\ + 'r': session = gajim.connections[account].get_jingle_session(jid, sid=file_props['session-sid']) # get content: