Skip to content

Commit

Permalink
Checking if the report name is already in dict to avoid duplication a…
Browse files Browse the repository at this point in the history
…nd hence FileNotFound exception when deleting.
  • Loading branch information
bacciotti committed Jul 2, 2024
1 parent 77dbbce commit d398880
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nise/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,8 @@ def gcp_create_report(options): # noqa: C901

local_file_path, output_file_name = write_gcp_file(gen_start_date, gen_end_date, data, options)
output_files.append(output_file_name)
monthly_files.append(local_file_path)
if local_file_path not in monthly_files:
monthly_files.append(local_file_path)

for index, month_file in enumerate(monthly_files):
if gcp_bucket_name:
Expand Down

0 comments on commit d398880

Please sign in to comment.