mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-25 10:05:53 +03:00
[PR #636] [MERGED] [WhoScored] Error handling for missing events #710
Labels
No labels
ESPN
FBref
FotMob
MatchHistory
SoFIFA
Sofascore
WhoScored
WhoScored
bug
build
common
dependencies
discussion
documentation
duplicate
enhancement
good first issue
invalid
performance
pull-request
question
question
removal
understat
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/soccerdata#710
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/probberechts/soccerdata/pull/636
Author: @probberechts
Created: 7/8/2024
Status: ✅ Merged
Merged: 7/18/2024
Merged by: @probberechts
Base:
master← Head:fix/iss633📝 Commits (3)
450ccfffix(whoscored): error handling for missing eventsf8a174achore(linting): ruffd88880dfix(WhoScored): read only once📊 Changes
2 files changed (+13 additions, -6 deletions)
View changed files
📝
soccerdata/_common.py(+7 -4)📝
soccerdata/whoscored.py(+6 -2)📄 Description
Previously, the javascript variable that stores all events was empty when no events were available for a given game. Since the change fixed in #618, the javascript variable is missing instead, resulting in a
JavascriptException. This commit updates the error handling accordingly.Closes #633
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.