Fixed missing variable when KiCost wasn't used

This commit is contained in:
Salvador E. Tropea 2021-04-25 09:59:23 -03:00
parent 55277a550f
commit 80f64e7b19
1 changed files with 1 additions and 0 deletions

View File

@ -598,6 +598,7 @@ def write_xlsx(filename, groups, col_fields, head_names, cfg):
worksheet.set_landscape()
# Optionally add KiCost information
kicost_colors = None
if cfg.xlsx.kicost:
kicost_colors = create_kicost_sheet(workbook, groups, image_data, fmt_title, fmt_info, fmt_subtitle, cfg)
# Add a sheet for the color references