def get_team_players(self, team):
team_id = self.team_names.get(team, None)<EOL>try:<EOL><INDENT>req = self._get('<STR_LIT>'.format(team_id))<EOL>team_players = req.json()['<STR_LIT>']<EOL>if not team_players:<EOL><INDENT>click.secho("<STR_LIT>", fg="<STR_LIT>", bold=True)<EOL><DEDENT>else:<EOL><INDENT>self.writer.team_players(team_players)<EOL><DEDENT><DEDENT>except APIErrorException:<EOL><INDENT>click.secho("<STR_LIT>",<EOL>fg="<STR_LIT>", bold=True)<EOL><DEDENT>
Queries the API and fetches the players
for a particular team