Skip to content

Commit 1cff808

Browse files
committed
[PCBNew][Added] Try to dismiss errors during start-up
- Informed context as warning - Helps when converting Altium files
1 parent 22c9ea9 commit 1cff808

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

kiauto/interposer.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,10 @@ def wait_start_by_msg(cfg):
761761
dismiss_dialog(cfg, 'Report', ['Tab', 'Return'])
762762
elif modal == 'Edit Mapping of Imported Layers 1':
763763
dismiss_remap_layers(cfg, modal[:-2])
764+
elif modal == 'KiCad PCB Editor Error 1':
765+
title = modal[:-2]
766+
cfg.logger.warning("PCB Editor error "+str(collect_dialog_messages(cfg, title)))
767+
dismiss_dialog(cfg, title, 'Return')
764768
continue
765769
if not match and with_elapsed:
766770
log.flush_info()
@@ -821,5 +825,8 @@ def wait_start_by_msg(cfg):
821825
elif title == 'Edit Mapping of Imported Layers':
822826
# KiCad 9 import, we handle it on modal 1
823827
pass
828+
elif title == 'KiCad PCB Editor Error':
829+
# we handle it on modal 1
830+
pass
824831
else:
825832
unknown_dialog(cfg, title)

0 commit comments

Comments
 (0)