def _get_channel_community(self, cid): assert isinstance(cid, str) assert len(cid) == 20 try: return self._dispersy.get_community(cid, True) except CommunityNotFoundException: self._logger.debug(u"join preview community %s", cid.encode("HEX")) return PreviewChannelCommunity.init_community(self._dispersy, self._dispersy.get_member(mid=cid), self._my_member, tribler_session=self.tribler_session)
def _get_channel_community(self, cid): assert isinstance(cid, str) assert len(cid) == 20 try: return self._dispersy.get_community(cid, True) except CommunityNotFoundException: self._logger.debug(u"join preview community %s", cid.encode("HEX")) return PreviewChannelCommunity.init_community( self._dispersy, self._dispersy.get_member(mid=cid), self._my_member, tribler_session=self.tribler_session)