Skip to content

statsbombpy 1.10.1

Compare
Choose a tag to compare
@scotty779 scotty779 released this 15 Jun 15:40
· 16 commits to master since this release
5188bac

This patch adds a status check to the public API calls.

Previously when a user entered the wrong match or competition and season id into the open data functions you get the following error:
JSONDecodeError: Extra data: line 1 column 4 (char 3)

Instead, we've added a status check to all the public API calls so that if, for example, the user passes through an invalid match_id we get a HTTPError 404 returned to indicate that they've tried to access a resource that doesn't exist.