Updates
This commit is contained in:
@@ -328,7 +328,7 @@ def load_bom_data(bom_path: str) -> list | None:
|
||||
Returns None if no 'bom' tab is found."""
|
||||
wb = openpyxl.load_workbook(bom_path, data_only=True)
|
||||
|
||||
bom_sheet = next((wb[n] for n in wb.sheetnames if n.lower() == "bom"), None)
|
||||
bom_sheet = next((wb[n] for n in wb.sheetnames if n.strip().lower() == "bom"), None)
|
||||
if bom_sheet is None:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user