Removed comments #297_cpl_update
This commit is contained in:
parent
2e9cf0bd97
commit
dbd82930d4
@ -20,24 +20,7 @@ class BotLoggingSettings(ConfigurationModelABC):
|
|||||||
def _files_from_dict(self, settings: dict):
|
def _files_from_dict(self, settings: dict):
|
||||||
files = List(FileLoggingSettings)
|
files = List(FileLoggingSettings)
|
||||||
for s in settings:
|
for s in settings:
|
||||||
# st = FileLoggingSettings(s)
|
|
||||||
settings[s]["Key"] = s
|
settings[s]["Key"] = s
|
||||||
# st.from_dict(settings[s])
|
|
||||||
st = JSONProcessor.process(FileLoggingSettings, settings[s])
|
st = JSONProcessor.process(FileLoggingSettings, settings[s])
|
||||||
files.append(st)
|
files.append(st)
|
||||||
self._files = files
|
self._files = files
|
||||||
|
|
||||||
# def from_dict(self, settings: dict):
|
|
||||||
# try:
|
|
||||||
# files = List(FileLoggingSettings)
|
|
||||||
# for s in settings:
|
|
||||||
# st = FileLoggingSettings()
|
|
||||||
# settings[s]["Key"] = s
|
|
||||||
# st.from_dict(settings[s])
|
|
||||||
# files.append(st)
|
|
||||||
# self._files = files
|
|
||||||
# except Exception as e:
|
|
||||||
# Console.set_foreground_color(ForegroundColorEnum.red)
|
|
||||||
# Console.write_line(f"[ ERROR ] [ {__name__} ]: Reading error in {type(self).__name__} settings")
|
|
||||||
# Console.write_line(f"[ EXCEPTION ] [ {__name__} ]: {e} -> {traceback.format_exc()}")
|
|
||||||
# Console.set_foreground_color(ForegroundColorEnum.default)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user