outside-edge / python-espncricinfo

Python wrapper for the ESPNCricInfo JSON API
MIT License
146 stars 64 forks source link

[BUG] Error while accessing the player object #63

Open Anirudh58 opened 7 months ago

Anirudh58 commented 7 months ago

Describe the bug Error while accessing the player object

To Reproduce Steps to reproduce the behavior:

from espncricinfo.player import Player
p = Player('277916')

Expected behavior Should not throw an error and get the player object correctly.

Screenshots

image

Additional context Add any other context about the problem here.

saahilp commented 7 months ago

Your player class isn't updated to what currently exists in the repository. This issue has been fixed but the version that you install when you run pip3 install python-espncricinfo doesn't have the latest codebase. At least, it didn't for me. I got around this by replacing the player.py class in my local with the latest one in the repository.