- else:
- if handle.get_type() == telepathy.HANDLE_TYPE_GROUP:
- chan = channel.contact_list.GroupChannel(self._connRef(), handle)
- elif handle.get_type() == telepathy.HANDLE_TYPE_CONTACT:
- chan = channel.contact_list.creat_contact_list_channel(self._connRef(), handle)
- else:
- _moduleLogger.warn("Unknown channel type %r" % handle.get_type())
+ except KeyError, e:
+ if handle.get_type() != telepathy.HANDLE_TYPE_LIST:
+ raise telepathy.errors.NotImplemented("Only server lists are allowed")
+ _moduleLogger.debug("Requesting new contact list channel")
+
+ chan = channel.contact_list.create_contact_list_channel(self._connRef(), handle)