mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-07 09:49:56 +00:00
raise exception instead
Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
parent
9a6385833c
commit
7893ae121a
1 changed files with 2 additions and 2 deletions
|
|
@ -19,8 +19,8 @@ def get_all_releases(token):
|
|||
if response.status_code == 200:
|
||||
return response.json()
|
||||
else:
|
||||
print(f"Error fetching releases: {response.status_code}, {response.text}")
|
||||
return []
|
||||
raise Exception(f"Error fetching releases: {response.status_code}, {response.text}")
|
||||
|
||||
|
||||
def merge_release_notes(output_file, token=None):
|
||||
releases = get_all_releases(token)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue