From 822ff927d845cf14d1c02073864ca0e933fbb324 Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Fri, 31 May 2024 12:44:48 +0200 Subject: [PATCH] fix: website config Signed-off-by: Ludovic Ortega --- hyperglass/models/config/params.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hyperglass/models/config/params.py b/hyperglass/models/config/params.py index 1e35ba2b..a39a0ea4 100644 --- a/hyperglass/models/config/params.py +++ b/hyperglass/models/config/params.py @@ -91,7 +91,9 @@ class Params(ParamsPublic, HyperglassModel): web: Web = Web() def __init__(self, **kw: t.Any) -> None: - return super().__init__(**self.convert_paths(kw)) + if "plugins" in kw: + kw["plugins"] = self.convert_paths(kw["plugins"]) + return super().__init__(**kw) @field_validator("site_description") def validate_site_description(cls: "Params", value: str, info: ValidationInfo) -> str: