Skip to content

Commit

Permalink
Do not fail if nothing was rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqwsx committed Oct 29, 2024
1 parent 7a731d8 commit 0330d8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kikit/actionPlugins/panelize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0330d8c

Please sign in to comment.