def channel_from_name(self, name):
try:<EOL><INDENT>channel = [channel for channel in self.channels<EOL>if channel['<STR_LIT:name>'] == name][<NUM_LIT:0>]<EOL><DEDENT>except IndexError:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(name))<EOL><DEDENT>return channel<EOL>
Return the channel dict given by human-readable {name}