Skip to content

Commit

Permalink
fix(whoscored): javascript error: requirejs is not defined
Browse files Browse the repository at this point in the history
Fixes #617
  • Loading branch information
probberechts committed Jun 28, 2024
1 parent b8adef9 commit a616d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soccerdata/whoscored.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,14 +703,14 @@ def read_events( # noqa: C901
reader = self.get(
url,
filepath,
var="requirejs.s.contexts._.config.config.params.args.matchCentreData",
var="require.config.params['args'].matchCentreData",
no_cache=live,
)
if retry_missing and reader.read(4) == b"null":
reader = self.get(
url,
filepath,
var="requirejs.s.contexts._.config.config.params.args.matchCentreData",
var="require.config.params['args'].matchCentreData",
no_cache=True,
)
except ConnectionError as e:
Expand Down

0 comments on commit a616d57

Please sign in to comment.