From a20ba7aaa8829e9f319e6d2bbeea44b6f587c58a Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 9 Oct 2023 10:05:44 -0300 Subject: [PATCH] [Fixed] Check for global option in last patch --- kibot/layer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kibot/layer.py b/kibot/layer.py index 00ca452c..be2be1d3 100644 --- a/kibot/layer.py +++ b/kibot/layer.py @@ -268,14 +268,14 @@ class Layer(Optionable): Layer._pcb_layers = {GS.board.GetLayerName(id): id for id in GS.board.GetEnabledLayers().Seq()} def get_default_suffix(self): - if GS.global_layer_defaults: + if not isinstance(GS.global_layer_defaults, type): layer = next(filter(lambda x: x.layer == self.layer, GS.global_layer_defaults), None) if layer and layer.suffix: return layer.suffix return self.layer.replace('.', '_') def get_default_description(self): - if GS.global_layer_defaults: + if not isinstance(GS.global_layer_defaults, type): layer = next(filter(lambda x: x.layer == self.layer, GS.global_layer_defaults), None) if layer and layer.description: return layer.description