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 NFL rosters #377

Merged
merged 1 commit into from
Apr 5, 2020
Merged

Conversation

roclark
Copy link
Owner

@roclark roclark commented Apr 5, 2020

Certain NFL rosters contain links to individual player pages that are either invalid or incomplete, causing an error during the parsing step. This occurs more frequently with earlier seasons as many pages were invalid. Simply checking if a page is invalid prior to attempting to parse the information will prevent the error from being thrown, and allow expected execution to continue.

Fixes #376

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

Certain NFL rosters contain links to individual player pages that are
either invalid or incomplete, causing an error during the parsing step.
This occurs more frequently with earlier seasons as many pages were
invalid. Simply checking if a page is invalid prior to attempting to
parse the information will prevent the error from being thrown, and
allow expected execution to continue.

Signed-Off-By: Robert Clark <robdclark@outlook.com>
@roclark roclark added the bug Something isn't working label Apr 5, 2020
@roclark roclark added this to the Release 0.5.1 milestone Apr 5, 2020
@roclark roclark self-assigned this Apr 5, 2020
@codecov
Copy link

codecov bot commented Apr 5, 2020

Codecov Report

Merging #377 into master will not change coverage by %.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #377   +/-   ##
=======================================
  Coverage   99.97%   99.97%           
=======================================
  Files          48       48           
  Lines       10551    10551           
=======================================
  Hits        10548    10548           
  Misses          3        3           
Impacted Files Coverage Δ
sportsreference/nfl/roster.py 100.00% <100.00%> (ø)

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 2129b83...bb58013. Read the comment docs.

@roclark roclark merged commit e2ef84b into master Apr 5, 2020
@roclark roclark deleted the patch/fix-nfl-roster-parser-error branch April 5, 2020 18:06
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.

NFL Roster Error(s)
1 participant