mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-04 12:04:20 +08:00
Makes the notebook execute without errors when GitHubs API rate limit (#3006)
This commit is contained in:
parent
ed744abf33
commit
b558ba56dc
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue