Skip to content

Commit

Permalink
added error handling for missing severities section
Browse files Browse the repository at this point in the history
  • Loading branch information
erjosito committed Jul 15, 2024
1 parent 0f74f22 commit 6a1fc13
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/update_excel_openpyxl.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,12 @@ def update_excel_file(input_excel_file, output_excel_file, checklist_data):
print("DEBUG:", str(row_counter - values_row1), "statuses added to Excel spreadsheet")

# Update severities
row_counter = values_row1
for item in checklist_data.get("severities"):
severity = item.get("name")
wsv[col_values_severity + str(row_counter)].value = severity
row_counter += 1
if 'severities' in checklist_data:
row_counter = values_row1
for item in checklist_data.get("severities"):
severity = item.get("name")
wsv[col_values_severity + str(row_counter)].value = severity
row_counter += 1

# Display summary
if args.verbose:
Expand Down

0 comments on commit 6a1fc13

Please sign in to comment.