diff --git a/yahoofantasy/resources/league.py b/yahoofantasy/resources/league.py index 81e9f84..49cce7a 100644 --- a/yahoofantasy/resources/league.py +++ b/yahoofantasy/resources/league.py @@ -79,6 +79,8 @@ def build_cache_key(start): players = [] while "player" in data["fantasy_content"]["league"]["players"]: for player in data["fantasy_content"]["league"]["players"]["player"]: + if not isinstance(player, dict): + continue p = Player(self) from_response_object(p, player) players.append(p)