diff options
Diffstat (limited to 'src/ee')
-rw-r--r-- | src/ee/tools/part_validate_parts.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ee/tools/part_validate_parts.py b/src/ee/tools/part_validate_parts.py index 699bcce..d9ad3f7 100644 --- a/src/ee/tools/part_validate_parts.py +++ b/src/ee/tools/part_validate_parts.py @@ -72,12 +72,11 @@ def check_has_footprint(ctx: Context, bom: Part, sch: Part): ms = Messages(sch) fp = sch.facts.get_value(common_fact_types.footprint) - - supplier_ref = bom.get_only_part_reference() - if fp is None: ms.warning("No footprint in schematic part") + supplier_ref = bom.get_only_part_reference() + if supplier_ref is None: return # Just return, other checks will tell about missing BOM part @@ -93,7 +92,7 @@ def check_has_footprint(ctx: Context, bom: Part, sch: Part): f"Footprints: part: {fp}, BOM: {supplier_fp}.") if fp is None and supplier_fp is not None: - return ms.warning(f"The schematic part's footprint should be compatible with the BOM part's' footprint: " + return ms.warning(f"The schematic part's footprint should be compatible with the BOM part's footprint: " f"{supplier_fp}.") if len(ms.messages) == 0: |