Closed nachouve closed 1 month ago
Issue Update: It appears that the changes made in this commit address the reported problem.
Request for Review: As I'm not familiar with some of the technologies used in the project, @probberechts I would appreciate any guidance on potential improvements or corrections needed before merging the fix.
Thank you in advance for your assistance.
I've added a suggestion on how to implement this a bit more cleaner. But functionally, your fix seems ok. Would you be able to create a pull request?
I've added a suggestion on how to implement this a bit more cleaner. But functionally, your fix seems ok. Would you be able to create a pull request?
Perfect. I'll do it. Thank you!
Issue Summary:
I encountered an issue with soccerdata while parsing HTML for certain events in FBref.
Details: The error occurs in this line of the code where the player1 variable is set. Sometimes, there is no tag present here, but it has the name of person who was issued with a yellow card, for example.
Steps to Reproduce:
Expected Behavior: The read_events() function should handle cases where the tag is missing gracefully, rather than causing an error.