From 0330d8c33ea7d851f7ab54a70b136f8b984b39b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Mr=C3=A1zek?= Date: Tue, 29 Oct 2024 08:57:53 +0100 Subject: [PATCH] Do not fail if nothing was rendered --- kikit/actionPlugins/panelize.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kikit/actionPlugins/panelize.py b/kikit/actionPlugins/panelize.py index 446dafd6..ed76fab7 100644 --- a/kikit/actionPlugins/panelize.py +++ b/kikit/actionPlugins/panelize.py @@ -80,7 +80,11 @@ def transplateBoard(source, target): target.SetZoneSettings(source.GetZoneSettings()) def drawTemporaryNotification(board, sourceFilename): - bbox = findBoardBoundingBox(board) + try: + bbox = findBoardBoundingBox(board) + except Exception: + # If the output is empty... + bbox = pcbnew.BOX2I(pcbnew.VECTOR2I(0, 0), pcbnew.VECTOR2I(0, 0)) text = pcbnew.PCB_TEXT(board) text.SetLayer(pcbnew.Margin)