From 37b86351957677bc60e2ac9c9072c5610834d44f Mon Sep 17 00:00:00 2001 From: jshixiong <2645476194@qq.com> Date: Thu, 8 Aug 2024 12:10:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(control):=20=E7=B3=BB=E7=BB=9F=E6=8E=A7?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/sys_control.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/sys_control.py b/app/sys_control.py index 0e567a1..ae0ca7a 100644 --- a/app/sys_control.py +++ b/app/sys_control.py @@ -16,7 +16,7 @@ def execute_cpu_full_script(): return jsonify({"message": "successfully", "output": output}) except Exception as e: logging.info("执行跑满cpu脚本错误") - return jsonify({"message": "failed", "error": str(e.output)}) + return jsonify({"message": "failed", "error": str(e)}) def execute_memory_full_script(): @@ -33,4 +33,4 @@ def execute_memory_full_script(): return jsonify({"message": "successfully", "output": output}) except Exception as e: logging.info("执行跑满memory脚本错误") - return jsonify({"message": "failed", "error": str(e.output)}) \ No newline at end of file + return jsonify({"message": "failed", "error": str(e)}) \ No newline at end of file