Skip to content

Commit 15531c5

Browse files
Fix NameError for run_details variable
Corrects a NameError in the `main` function when calling `_process_and_display_logs_for_failed_jobs`. The script was attempting to use `run.get('html_url')` where it should have been `run_details.get('html_url')` after a previous refactor. This fix ensures the correct variable is used, allowing the script to properly pass the workflow run's HTML URL to the log processing function.
1 parent d7cea5c commit 15531c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/print_workflow_run_errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def parse_repo_url_arg(url_string):
490490
sys.stderr.write(f"INFO: Found {len(failed_jobs_this_pattern)} failed job(s) for pattern '{current_pattern_str}'.\n")
491491

492492
# Call the refactored processing function
493-
_process_and_display_logs_for_failed_jobs(args, failed_jobs_this_pattern, run.get('html_url'), current_pattern_str)
493+
_process_and_display_logs_for_failed_jobs(args, failed_jobs_this_pattern, run_details.get('html_url'), current_pattern_str)
494494

495495
found_failures_and_processed = True
496496
sys.stderr.write(f"INFO: Failures processed for pattern '{current_pattern_str}'. Subsequent patterns will not be checked.\n")

0 commit comments

Comments
 (0)