From 20df8ed12c189c6c0591831cefe62c3484dccfab Mon Sep 17 00:00:00 2001 From: teh_coderer Date: Sat, 13 May 2023 16:36:56 -0400 Subject: [PATCH] Update system_model.py --- openbb_terminal/core/models/system_model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openbb_terminal/core/models/system_model.py b/openbb_terminal/core/models/system_model.py index b902148482fb..24907fbe33d3 100644 --- a/openbb_terminal/core/models/system_model.py +++ b/openbb_terminal/core/models/system_model.py @@ -60,7 +60,7 @@ class SystemModel(BaseModel): def __repr__(self) -> str: # pylint: disable=useless-super-delegation return super().__repr__() - @root_validator + @root_validator(allow_reuse=True) @classmethod def add_additional_handlers(cls, values): if ( @@ -72,14 +72,14 @@ def add_additional_handlers(cls, values): return values - @root_validator + @root_validator(allow_reuse=True) @classmethod def validate_send_to_s3(cls, values): if "posthog" in values["LOGGING_HANDLERS"] or values["LOG_COLLECT"] is False: values["LOGGING_SEND_TO_S3"] = False return values - @validator("LOGGING_HANDLERS") + @validator("LOGGING_HANDLERS", allow_reuse=True) @classmethod def validate_logging_handlers(cls, v): for value in v: