From b31084f6096c33dbff682bb3d6b0649f2341eb75 Mon Sep 17 00:00:00 2001 From: sliptonic Date: Mon, 23 Sep 2024 10:27:49 -0500 Subject: [PATCH] Catch other exceptions with Camotics on import. (#16583) --- src/Mod/CAM/InitGui.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Mod/CAM/InitGui.py b/src/Mod/CAM/InitGui.py index 1aa7cfb7a8..6bc0ed8ffe 100644 --- a/src/Mod/CAM/InitGui.py +++ b/src/Mod/CAM/InitGui.py @@ -164,6 +164,12 @@ class CAMWorkbench(Workbench): toolcmdlist.append("CAM_Camotics") except (FileNotFoundError, ModuleNotFoundError): pass + except subprocess.CalledProcessError as e: + print(f"Failed to execute camotics command: {e}") + except ValueError as ve: + print(f"Version error: {ve}") + except Exception as ex: + print(f"An unexpected error occurred: {ex}") try: try: