diff --git a/espn_api/football/matchup.py b/espn_api/football/matchup.py index b5fa5262..c808f5d3 100644 --- a/espn_api/football/matchup.py +++ b/espn_api/football/matchup.py @@ -11,7 +11,11 @@ def __init__(self, data): self.away_team: Team def __repr__(self): - return f'Matchup({self.home_team}, {self.away_team})' + if hasattr(self, 'away_team'): + return f'Matchup({self.home_team}, {self.away_team})' + else: + return f'Matchup({self.home_team}, N/A)' + def _fetch_matchup_info(self, data, team): '''Fetch info for matchup'''