basketball_reference icon indicating copy to clipboard operation
basketball_reference copied to clipboard

Error Parsing?

Open luzer opened this issue 9 years ago • 0 comments

The code that caused this warning is on line 49 of the file match_generator.py. To get rid of this warning, change code that looks like this:

 BeautifulSoup([your markup])

to this:

 BeautifulSoup([your markup], "html.parser")

  markup_type=markup_type))
Traceback (most recent call last):
  File "match_generator.py", line 49, in <module>
    b_ref.crawl_season()
  File "xxx/base.py", line 328, in crawl_season
    self._gen_matches_codes()
  File "xxx/nba.py", line 137, in _gen_matches_codes
    reg_season, post_season = seasons[0], None
IndexError: list index out of range

luzer avatar Dec 01 '16 12:12 luzer