From 7d1127c6b5fbc76b53f15ec92bd65be4b59baa19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Bra=C3=B1a?= Date: Sun, 3 May 2026 02:57:50 +0200 Subject: [PATCH] =?UTF-8?q?Trench:=20fix=20except=20gen=C3=A9rico=20->=20A?= =?UTF-8?q?ttributeError?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Civil/PVPlantTrench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civil/PVPlantTrench.py b/Civil/PVPlantTrench.py index f329426..ad43de9 100644 --- a/Civil/PVPlantTrench.py +++ b/Civil/PVPlantTrench.py @@ -114,7 +114,7 @@ def makeTrench(base=None): try: folder = FreeCAD.ActiveDocument.Trenches - except: + except AttributeError: folder = FreeCAD.ActiveDocument.addObject("App::DocumentObjectGroup", 'Trenches') folder.Label = "Trenches" folder.addObject(obj)