Catch other exceptions with Camotics on import. (#16583)

This commit is contained in:
sliptonic
2024-09-23 10:27:49 -05:00
committed by GitHub
parent 0a18849a0a
commit b31084f609

View File

@@ -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: