Skip to content

Commit 4a24edf

Browse files
committed
Fix error handling when there are no edge cuts
1 parent 04f4afb commit 4a24edf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

InteractiveHtmlBom/core/ibom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def main(parser, config, logger):
273273
pcbdata, components = parser.parse()
274274
if not pcbdata or not components:
275275
logger.error('Parsing failed.')
276-
exit(1)
276+
return
277277
pcbdata["bom"]["both"] = generate_bom(components, config, extra_fields)
278278

279279
# build BOM

InteractiveHtmlBom/ecad/kicad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def parse(self):
375375
self.logger.error('Please draw pcb outline on the edges '
376376
'layer on sheet or any module before '
377377
'generating BOM.')
378-
return
378+
return None, None
379379
bbox = {
380380
"minx": bbox.GetPosition().x * 1e-6,
381381
"miny": bbox.GetPosition().y * 1e-6,

0 commit comments

Comments
 (0)