Makes the notebook execute without errors when GitHubs API rate limit (#3006)

This commit is contained in:
Hugo Baraúna 2025-05-22 13:46:06 -03:00 committed by GitHub
parent ed744abf33
commit b558ba56dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,7 +141,16 @@ Execute the cell below. You should see a list of GitHub users who starred the re
```elixir
repo_name = "livebook-dev/livebook"
{:ok, stargazers} = GitHubApi.stargazers(repo_name)
stargazers =
case GitHubApi.stargazers(repo_name) do
{:ok, stargazers} ->
stargazers
{:error, error_message} ->
IO.puts(error_message)
[]
end
```
## Data processing