Skip to content

Commit

Permalink
Mitigate possible error in response.
Browse files Browse the repository at this point in the history
  • Loading branch information
icemac committed Nov 20, 2024
1 parent f317618 commit baf6089
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/zope/meta/re_enable_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ def main():
wfs = call(
'gh', 'workflow', 'list', '--all', '-R', f'{ORG}/{repo}',
capture_output=True).stdout
test_line = [x for x in wfs.splitlines() if x.startswith('test')][0]
try:
test_line = [
x for x in wfs.splitlines() if x.startswith('test')][0]
except IndexError:
print(' ❌ no tests.yml workflow')
continue
if 'disabled_inactivity' not in test_line:
print(' ☑️ already enabled')
if args.force_run:
Expand Down

0 comments on commit baf6089

Please sign in to comment.