From 2204cf0d06111e0350cdbdabdda9eaa3df1e4047 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 12 Aug 2019 13:52:39 +0200 Subject: part-validate-parts: Fixing typo. --- src/ee/tools/part_validate_parts.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/ee') 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: -- cgit v1.2.3