From 240055031e730ca12dc09f1987504ba0fbc51f33 Mon Sep 17 00:00:00 2001 From: test Date: Thu, 17 Oct 2024 02:11:48 +0600 Subject: [PATCH] Error msg fix --- Framework/Utilities/CommonUtil.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Framework/Utilities/CommonUtil.py b/Framework/Utilities/CommonUtil.py index d6c1f1b4a..5ca4e581c 100644 --- a/Framework/Utilities/CommonUtil.py +++ b/Framework/Utilities/CommonUtil.py @@ -368,17 +368,13 @@ def Exception_Handler(exec_info, temp_q=None, UserMessage=None): exc_type, exc_obj, exc_tb = exec_info File_Name = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1] Function_Name = os.path.split(exc_tb.tb_frame.f_code.co_name)[1] - if debug_status: - Error_Detail = traceback.format_exc() + Error_Detail = traceback.format_exc() sModuleInfo = Function_Name + ":" + File_Name ExecLog(sModuleInfo, "Following exception occurred: %s" % (Error_Detail), 3) - # TakeScreenShot(Function_Name + "~" + File_Name) - if UserMessage != None: + if UserMessage is not None: ExecLog( sModuleInfo, "Following error message is custom: %s" % (UserMessage), 3 ) - # if temp_q != None: - # temp_q.put("zeuz_failed") return "zeuz_failed"