From 50ac7f932b8abed208042f2ed88f116d1eaeca02 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Thu, 8 Sep 2005 18:16:38 +0000 Subject: [PATCH] fix blocker bug: tb on Resource binding --- src/common/connection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/connection.py b/src/common/connection.py index 6b0015b22..7c6cfd096 100644 --- a/src/common/connection.py +++ b/src/common/connection.py @@ -1374,7 +1374,8 @@ class Connection: self.dispatch('ERROR', (_('Could not connect to "%s"') % self.name, _('Check your connection or try again later'))) return None - self.server_resource = con.Resource + if hasattr(con, 'Resource'): + self.server_resource = con.Resource con.RegisterEventHandler(self._event_dispatcher) if auth: con.initRoster()