From c66b554b46483cffd17b1aa7df11013ec1963640 Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Wed, 30 Apr 2025 13:51:56 -0700 Subject: [PATCH] dont try to create Boards if there on no documents on the API --- freecad/kiconnect/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freecad/kiconnect/project.py b/freecad/kiconnect/project.py index 36b0e75..8b4a85b 100644 --- a/freecad/kiconnect/project.py +++ b/freecad/kiconnect/project.py @@ -28,7 +28,7 @@ class Project: self.API = api.makeAPI(self.feature) - if self.API.Proxy.is_connected: + if self.API.Proxy.is_connected and self.API.DocumentCount > 0: kicad_board = self.API.Proxy.kicad.get_board() self.board = Board(kicad_board, self.feature)