Skip to content

Commit

Permalink
Merge pull request #220 from roclark/patch/fix-nfl-boxscore-errors
Browse files Browse the repository at this point in the history
Fix issue with future NFL boxscore errors
  • Loading branch information
roclark authored Oct 4, 2019
2 parents 51df345 + 01d52e9 commit 3838679
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sportsreference/nfl/boxscore.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,8 +652,9 @@ def dataframe(self):
values. The index for the DataFrame is the string URI that is used to
instantiate the class, such as '201802040nwe'.
"""
if self._away_points is None and self._home_points is None:
return None
for points in [self._away_points, self._home_points]:
if points is None or points == '':
return None
fields_to_include = {
'attendance': self.attendance,
'away_first_downs': self.away_first_downs,
Expand Down

0 comments on commit 3838679

Please sign in to comment.