Commit 39499682 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent traceback

parent c95c3a49
......@@ -1654,8 +1654,12 @@ class RosterWindow:
if type2 == 'self_contact':
return 1
if type1 == 'group':
name1 = model[iter1][C_JID].decode('utf-8')
name2 = model[iter2][C_JID].decode('utf-8')
name1 = model[iter1][C_JID]
if name1:
name1 = name1.decode('utf-8')
name2 = model[iter2][C_JID]
if name2:
name2 = name2.decode('utf-8')
if name1 == _('Transports'):
return 1
if name2 == _('Transports'):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment