summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-04-07 23:25:47 +0300
committerAlon Levy <alevy@redhat.com>2011-04-07 23:25:47 +0300
commita9a63598f894543c7a7a9059ec3981cadfd1e996 (patch)
tree263bbde493cb4fe4e415ebf84599613a5dd3e0b6
parent5c9ba3dde1001ba4572ac5ec746b10494a2a0278 (diff)
not sure
-rw-r--r--client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/client.py b/client.py
index 9311f06..30ee1b9 100644
--- a/client.py
+++ b/client.py
@@ -155,7 +155,8 @@ class Channel(object):
self._connection_id = connection_id
self._common_caps = common_caps
self._channel_caps = channel_caps
- self._proto = client_proto.channels[channel_type]
+ self._proto = (client_proto.channels[channel_type] if
+ client_proto.channels else None)
self.send_link_message()
def send_link_message(self):