From 70184a87cff0a4793cd14c71e6a68447a84e36a7 Mon Sep 17 00:00:00 2001 From: mas2hc Date: Fri, 1 Nov 2024 13:27:23 +0700 Subject: [PATCH] Removed unknown state for robfw core --- RobotFramework_TestsuitesManagement/Config/CConfig.py | 2 +- RobotFramework_TestsuitesManagement/Keywords/CSetup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RobotFramework_TestsuitesManagement/Config/CConfig.py b/RobotFramework_TestsuitesManagement/Config/CConfig.py index 822e68e4..965505fb 100644 --- a/RobotFramework_TestsuitesManagement/Config/CConfig.py +++ b/RobotFramework_TestsuitesManagement/Config/CConfig.py @@ -909,7 +909,7 @@ def versioncontrol_error(self, reason, version1, version2): f"\n{detail}\n" f"\nPlease install the required {BUNDLE_NAME} version." + f"\nYou can find an installer here: {INSTALLER_LOCATION}\n", "ERROR") - BuiltIn().unknown('Version control error!!!') + raise Exception('Version control error!!!') if __name__ == "__main__": bundle_version() diff --git a/RobotFramework_TestsuitesManagement/Keywords/CSetup.py b/RobotFramework_TestsuitesManagement/Keywords/CSetup.py index 43e7d00f..85ca13dc 100644 --- a/RobotFramework_TestsuitesManagement/Keywords/CSetup.py +++ b/RobotFramework_TestsuitesManagement/Keywords/CSetup.py @@ -82,7 +82,7 @@ def testsuite_setup(self, sTestsuiteCfgFile=''): for infoMsg in TM.CTestsuitesCfg.oConfig.sLoadedCfgLog['info']: if infoMsg.strip() != '': logger.error(infoMsg) - BuiltIn().unknown(TM.CTestsuitesCfg.oConfig.sLoadedCfgLog['unknown']) + raise Exception(TM.CTestsuitesCfg.oConfig.sLoadedCfgLog['unknown']) if not TM.CTestsuitesCfg.oConfig.bLoadedCfg: if len(TM.CTestsuitesCfg.oConfig.sLoadedCfgLog['error']) > 0: @@ -93,7 +93,7 @@ def testsuite_setup(self, sTestsuiteCfgFile=''): for infoMsg in TM.CTestsuitesCfg.oConfig.sLoadedCfgLog['info']: if infoMsg.strip() != '': logger.error(infoMsg) - BuiltIn().unknown(TM.CTestsuitesCfg.oConfig.sLoadedCfgLog['unknown']) + raise Exception(TM.CTestsuitesCfg.oConfig.sLoadedCfgLog['unknown']) return msg = f"Running with configuration level {TM.CTestsuitesCfg.oConfig.configLevel.value}" if TM.CTestsuitesCfg.oConfig.configLevel==TM.CConfigLevel.LEVEL_4: