This commit is contained in:
adator
2024-09-18 20:21:44 +02:00
parent 0f31e67be6
commit c59dd16e87
3 changed files with 5 additions and 12 deletions

View File

@@ -127,18 +127,8 @@ Pour Les prochains lancement de defender vous devez utiliser la commande suivant
"SERVICE_HOST": "HOST.DE.TON.DEFENDER", "SERVICE_HOST": "HOST.DE.TON.DEFENDER",
"OWNER": "TON_NICK_NAME", "OWNER": "TON_NICK_NAME",
"PASSWORD": "admin", "PASSWORD": "admin"
"CONFIG_COLOR": {
"blanche": "\\u0003\\u0030",
"noire": "\\u0003\\u0031",
"bleue": "\\u0003\\u0020",
"verte": "\\u0003\\u0033",
"rouge": "\\u0003\\u0034",
"jaune": "\\u0003\\u0036",
"gras": "\\u0002",
"nogc": "\\u0002\\u0003"
}
} }
``` ```

View File

@@ -184,6 +184,9 @@ class Config:
print(f'FileNotFound: {fe}') print(f'FileNotFound: {fe}')
print('Configuration file not found please create core/configuration.json') print('Configuration file not found please create core/configuration.json')
sys.exit(0) sys.exit(0)
except KeyError as ke:
print(f'Key Error: {ke}')
print('The key must be defined in core/configuration.json')
def __load_service_configuration(self) -> ConfigDataModel: def __load_service_configuration(self) -> ConfigDataModel:
import_config = self.__load_json_service_configuration() import_config = self.__load_json_service_configuration()

View File

@@ -1,3 +1,3 @@
{ {
"version": "5.2.5" "version": "5.2.6"
} }