diff options
Diffstat (limited to 'src/ee/part')
-rw-r--r-- | src/ee/part/create_distributor_search_list.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ee/part/create_distributor_search_list.py b/src/ee/part/create_distributor_search_list.py index be362a8..fef1690 100644 --- a/src/ee/part/create_distributor_search_list.py +++ b/src/ee/part/create_distributor_search_list.py @@ -17,8 +17,8 @@ def create_distributor_search_list(in_path: Path, out_path: Path): pn_value = next((p.valueProp for p in part.get_mpns()), None) if pn_value is None: - # TODO: use schematic reference if found - print("Skipping part with no part number: uri={}".format(xml.uriProp)) + refs = [ref.referenceProp for ref in part.get_schematic_references()] + print("Skipping part with no part number: schematic reference: {}".format(", ".join(refs))) continue entry = out_parts.find_by_pn(pn_value) |