NBA official Website response is like this(starters and bench is null):
but nba_api will throw an error:
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/nba_api/stats/endpoints/boxscoretraditionalv3.py", line 141, in __init__
self.get_request()
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/nba_api/stats/endpoints/boxscoretraditionalv3.py", line 151, in get_request
self.load_response()
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/nba_api/stats/endpoints/boxscoretraditionalv3.py", line 154, in load_response
data_sets = self.nba_response.get_data_sets(self.endpoint)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/nba_api/stats/library/http.py", line 150, in get_data_sets
return endpoint_parser.get_data_sets()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/nba_api/stats/library/parserv3.py", line 234, in get_data_sets
start_bench_data = self.get_start_bench_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/nba_api/stats/library/parserv3.py", line 145, in get_start_bench_data
x for x in raw_dict["homeTeam"]["starters"].values()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'values'
For example: endpoint is :
boxscoretraditionalv3
Game0012300001
, period4
, params is:NBA official Website response is like this(starters and bench is null):
but nba_api will throw an error: