<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_standings(self, league):
 """Queries the API and gets the standings for a particular league"""

        league_id = self.league_ids[league]
        try:
            req = self._get('competitions/{id}/standings'.format(
                        id=league_id))
            self.writer.standings(req.json(), league)
        except APIErrorException:
            # Click handles incorrect League codes so this will only come up
            # if that league does not have standings available. ie. Champions League
            click.secho("No standings availble for {league}.".format(league=league),
                        fg="red", bold=True)