From c59dd16e878f990cb45b05e20a158c579ee8b6de Mon Sep 17 00:00:00 2001 From: adator <85586985+adator85@users.noreply.github.com> Date: Wed, 18 Sep 2024 20:21:44 +0200 Subject: [PATCH] V5.2.6 --- README.md | 12 +----------- core/loadConf.py | 3 +++ version.json | 2 +- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 04b467a..247798d 100644 --- a/README.md +++ b/README.md @@ -127,18 +127,8 @@ Pour Les prochains lancement de defender vous devez utiliser la commande suivant "SERVICE_HOST": "HOST.DE.TON.DEFENDER", "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" - } } ``` diff --git a/core/loadConf.py b/core/loadConf.py index 8735ddc..5224b3a 100644 --- a/core/loadConf.py +++ b/core/loadConf.py @@ -184,6 +184,9 @@ class Config: print(f'FileNotFound: {fe}') print('Configuration file not found please create core/configuration.json') 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: import_config = self.__load_json_service_configuration() diff --git a/version.json b/version.json index f3e4803..473fc25 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "5.2.5" + "version": "5.2.6" } \ No newline at end of file