From ed238bc7af22698b5141a4d16cd73553f40e1280 Mon Sep 17 00:00:00 2001 From: bnm91 Date: Thu, 26 Oct 2023 10:27:10 -0700 Subject: [PATCH] safety --- espn_api/base_league.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/espn_api/base_league.py b/espn_api/base_league.py index ece426a5..7aea1477 100644 --- a/espn_api/base_league.py +++ b/espn_api/base_league.py @@ -39,7 +39,7 @@ def _fetch_league(self, SettingsClass = BaseSettings): else: self.current_week = self.scoringPeriodId if self.scoringPeriodId <= data['status']['finalScoringPeriod'] else data['status']['finalScoringPeriod'] self.settings = SettingsClass(data['settings']) - self.members = data['members'] + self.members = data.get('members', []) return data def _fetch_teams(self, data, TeamClass, pro_schedule = None):