Fixed bom generation when no PCB is available.

This commit is contained in:
Salvador E. Tropea 2022-02-11 12:16:34 -03:00
parent edbe29740b
commit 71c77e89ce
1 changed files with 2 additions and 0 deletions

View File

@ -175,6 +175,8 @@ class GS(object):
@staticmethod
def get_aux_origin():
if GS.board is None:
return (0, 0)
if GS.ki6(): # pragma: no cover (Ki6)
settings = GS.board.GetDesignSettings()
return settings.GetAuxOrigin()