Skip to content

Commit

Permalink
core: list_release may raise exception in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Nov 24, 2024
1 parent b43f02c commit e9ecf1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/agstoolbox/core/gh/list_releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ def parse_releases(response_json) -> list[Release]:
found_asset = False

# This can raise a TypeError in some weird condition I don't know what it is
for asset in rel['assets']:
## it reads as TypeError: string indices must be integers
assets = rel['assets']

for asset in assets:
# check for either predictable or patch release archives
if is_asset_archive(rel['name'], asset['name']):
rls = Release()
Expand Down

0 comments on commit e9ecf1d

Please sign in to comment.