dont try to create Boards if there on no documents on the API
This commit is contained in:
parent
f1d2800354
commit
c66b554b46
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue