diff --git a/profiler/cluster_analyse/common_func/path_manager.py b/profiler/cluster_analyse/common_func/path_manager.py index 7ef7b4c345c024a0980c6ce2d91839b64c351740..04fdd171eade264a7c0987e01c817e6c2930f685 100644 --- a/profiler/cluster_analyse/common_func/path_manager.py +++ b/profiler/cluster_analyse/common_func/path_manager.py @@ -107,8 +107,8 @@ class PathManager: """ base_name = os.path.basename(path) if not os.path.exists(path): - msg = f"Invalid path: {base_name}" - raise RuntimeError(msg) + print(f"Error: Invalid path: {base_name}") + sys.exit(1) if platform.system().lower() == cls.WINDOWS: return if os.stat(path).st_uid != os.getuid():