don't fail to connect when no <stream:features> is sent by server. Fixes #5610

This commit is contained in:
Yann Leboulanger 2010-02-16 09:27:19 +01:00
parent 00262e0963
commit 04db669265
1 changed files with 1 additions and 1 deletions

View File

@ -639,7 +639,7 @@ class ConnectionVcard:
# We can now continue connection by requesting the roster
version = None
if con.Stream.features.getTag('ver',
if con.Stream.features and con.Stream.features.getTag('ver',
namespace=common.xmpp.NS_ROSTER_VER):
version = gajim.config.get_per('accounts', self.name,
'roster_version')