Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue pulling empty NBA roster fields #228

Merged
merged 1 commit into from
Oct 6, 2019

Conversation

roclark
Copy link
Owner

@roclark roclark commented Oct 6, 2019

Occasionally, some NBA roster pages will include empty rows in the roster table, causing the code to think another player exists when one doesn't, throwing an error when it is unable to parse a player ID. If an empty row is ever encountered, it should just be skipped as no information can be parsed anyway.

Fixes #226

Signed-Off-By: Robert Clark robdclark@outlook.com

@roclark roclark added the bug Something isn't working label Oct 6, 2019
@roclark roclark added this to the Release 0.4.6 milestone Oct 6, 2019
@roclark roclark self-assigned this Oct 6, 2019
@codecov
Copy link

codecov bot commented Oct 6, 2019

Codecov Report

Merging #228 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #228      +/-   ##
==========================================
+ Coverage   99.97%   99.97%   +<.01%     
==========================================
  Files          42       42              
  Lines        9361     9362       +1     
==========================================
+ Hits         9359     9360       +1     
  Misses          2        2
Impacted Files Coverage Δ
sportsreference/nba/roster.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9ee2efa...f5c324c. Read the comment docs.

@roclark roclark force-pushed the patch/fix-empty-nba-roster-fields branch 3 times, most recently from 68e8049 to c1fbfb6 Compare October 6, 2019 21:18
Occasionally, some NBA roster pages will include empty rows in the
roster table, causing the code to think another player exists when one
doesn't, throwing an error when it is unable to parse a player ID. If an
empty row is ever encountered, it should just be skipped as no
information can be parsed anyway.

Signed-Off-By: Robert Clark <robdclark@outlook.com>
@roclark roclark force-pushed the patch/fix-empty-nba-roster-fields branch from c1fbfb6 to f5c324c Compare October 6, 2019 22:13
@roclark roclark merged commit 0bf8a4c into master Oct 6, 2019
@roclark roclark deleted the patch/fix-empty-nba-roster-fields branch October 6, 2019 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with empty fields in NBA rosters
1 participant