make expression simpler

This commit is contained in:
Matthias 2022-01-21 02:12:40 +01:00
parent 9ed0a6fece
commit b3d031c473
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -205,7 +205,7 @@ def ExportBom(part, fmt='csv', cascade=False, max_levels=None, parameter_data=Fa
supplier_parts_used.add(sp_part)
if sp_part.supplier and sp_part.supplier:
if sp_part.supplier:
supplier_name = sp_part.supplier.name
else:
supplier_name = ''