From e7643dc9298dc323569dc41c019ac37c7758fc17 Mon Sep 17 00:00:00 2001 From: David Kaufman Date: Fri, 19 Sep 2025 13:33:14 -0400 Subject: [PATCH] fix codeql warning --- src/Mod/CAM/Path/Tool/Controller.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Mod/CAM/Path/Tool/Controller.py b/src/Mod/CAM/Path/Tool/Controller.py index 368c14318c..ec62888287 100644 --- a/src/Mod/CAM/Path/Tool/Controller.py +++ b/src/Mod/CAM/Path/Tool/Controller.py @@ -481,9 +481,8 @@ def copyTC(tc, job): try: if prop not in ["Label", "Label2"]: setattr(newtc, prop, getattr(tc, prop)) - except: - # ignore failure; it will succeed for all attributes that are meant - # to be assigned + except RuntimeError: + # Ignore errors for read-only properties pass for attr, expr in tc.ExpressionEngine: newtc.setExpression(attr, expr)