mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-25 10:05:53 +03:00
[PR #285] [MERGED] [FBref] Handle missing flag icon in Squad or Nation column #431
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#431
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/285
Author: @lorenzodb1
Created: 7/7/2023
Status: ✅ Merged
Merged: 7/8/2023
Merged by: @probberechts
Base:
master← Head:lorenzodb1-indexerror-fix-nation-col📝 Commits (1)
4f4f803Fixed IndexError in _fix_nation_col📊 Changes
1 file changed (+11 additions, -2 deletions)
View changed files
📝
soccerdata/fbref.py(+11 -2)📄 Description
The method _fix_nation_col throws an IndexError, supposedly when no flag is present. I fixed this by changing the logic to use regular expressions instead so that no error is thrown when the flag is missing.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.