djangobot/slack.py
def channel_from_name(self, name):
        """
        Return the channel dict given by human-readable {name}
        """
        try:
            channel = [channel for channel in self.channels
                       if channel['name'] == name][0]
        except IndexError:
            raise ValueError('Unknown channel for name: "{}"'.format(name))
        return channel
def channel_from_name(self, name):
        """
        Return the channel dict given by human-readable {name}
        """
        try:
            channel = [channel for channel in self.channels
                       if channel['name'] == name][0]
        except IndexError:
            raise ValueError('Unknown channel for name: "{}"'.format(name))
        return channel
def channel_from_name ( self , name ) : try : channel = [ channel for channel in self . channels if channel [ 'name' ] == name ] [ 0 ] except IndexError : raise ValueError ( 'Unknown channel for name: "{}"' . format ( name ) ) return channel
Return the channel dict given by human-readable {name}
Return the channel dict given by human - readable { name }