Fixed default variant name.

This commit is contained in:
SET 2020-08-10 18:55:58 -03:00
parent 78cfcd16c0
commit 8828be17e4
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ def do_bom(file_name, ext, comps, cfg):
# Group components according to group_fields
groups = group_components(cfg, comps)
# Give a name to empty variant
if not variants:
if not variants or (len(variants) == 1 and not variants[0]):
cfg.variant = ['default']
# Create the BoM
logger.debug("Saving BOM File: "+file_name)