aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-08-12 13:52:39 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-08-12 13:52:39 +0200
commit2204cf0d06111e0350cdbdabdda9eaa3df1e4047 (patch)
tree03ed7749873ee2a95d87cc7c85a034e5fd753f9d
parent64116f1f656ed48fca213dc93899b33b4a826afb (diff)
downloadee-python-2204cf0d06111e0350cdbdabdda9eaa3df1e4047.tar.gz
ee-python-2204cf0d06111e0350cdbdabdda9eaa3df1e4047.tar.bz2
ee-python-2204cf0d06111e0350cdbdabdda9eaa3df1e4047.tar.xz
ee-python-2204cf0d06111e0350cdbdabdda9eaa3df1e4047.zip
part-validate-parts: Fixing typo.
-rw-r--r--src/ee/tools/part_validate_parts.py7
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: