Jon Solow commited on
Commit
3bd0fa3
·
1 Parent(s): 19560be

Remove repeated line added for testing that should only be in try-except

Browse files
src/queries/nfl_teams/practice_reports.py CHANGED
@@ -75,7 +75,6 @@ class PracticeReportRawRow(BaseModel):
75
  def scrape_team_injury_report(team: NFLTeam) -> pd.DataFrame:
76
  print(f"Scraping Injury Report for: {team.team_full_name}")
77
  injury_report_url = urljoin(team.injury_report_url, f"week/REG-{CURRENT_WEEK}")
78
- team_report = pd.read_html(injury_report_url)[0]
79
  try:
80
  team_report = pd.read_html(injury_report_url)[0]
81
  except Exception:
 
75
  def scrape_team_injury_report(team: NFLTeam) -> pd.DataFrame:
76
  print(f"Scraping Injury Report for: {team.team_full_name}")
77
  injury_report_url = urljoin(team.injury_report_url, f"week/REG-{CURRENT_WEEK}")
 
78
  try:
79
  team_report = pd.read_html(injury_report_url)[0]
80
  except Exception: