prevent traceback when using normal socks5 FT

This commit is contained in:
Yann Leboulanger 2011-07-02 00:52:35 +02:00
parent ff972b6b67
commit f49f8163a6
1 changed files with 2 additions and 1 deletions

View File

@ -922,7 +922,8 @@ class Interface:
jid = unicode(file_props['receiver']) jid = unicode(file_props['receiver'])
# End jingle session # 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, session = gajim.connections[account].get_jingle_session(jid,
sid=file_props['session-sid']) sid=file_props['session-sid'])
# get content: # get content: