From 1fca89ab6934c1407362ac6e84004f974ad7bc3b Mon Sep 17 00:00:00 2001 From: Hui Zhou Date: Thu, 24 Oct 2024 10:41:32 +0200 Subject: [PATCH] FIX: edb cfg cutout (#870) Co-authored-by: ring630 <@gmail.com> --- src/pyedb/configuration/cfg_operations.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pyedb/configuration/cfg_operations.py b/src/pyedb/configuration/cfg_operations.py index 19e7c0f12e..9d7701ce10 100644 --- a/src/pyedb/configuration/cfg_operations.py +++ b/src/pyedb/configuration/cfg_operations.py @@ -60,10 +60,11 @@ def get_data_from_db(self): net_names = [] for name, obj in self._pedb.nets.nets.items(): - if obj.primitives[0].layer.name == "pyedb_cutout": - continue - if len(obj.primitives) > 0: - net_names.append(name) + if obj.primitives: + if obj.primitives[0].layer.name == "pyedb_cutout": + continue + else: + net_names.append(name) self.reference_list = [] self.signal_list = net_names