Skip to content

Commit

Permalink
Fix: Consolidated report can skip tasks without reports in given period.
Browse files Browse the repository at this point in the history
The task filter allows for tasks whose last report fall outside
the given interval. If such tasks has no reports in the given
period, the script will fail when getting the last report.
This change allows the script to skip such tasks.
  • Loading branch information
a-h-abdelsalam authored and greenbonebot committed Nov 12, 2024
1 parent c5c6b1b commit c36e0db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/create-consolidated-report.gmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,7 @@ def get_last_report_in_time_period(
reports_id = reports_xml.xpath("report/@id")
if reports_id:
reports.append(reports_id[0])
else:
print(f"Failed to get report for task {task_id}", file=sys.stderr)
sys.exit(1)

return reports


Expand Down

0 comments on commit c36e0db

Please sign in to comment.