diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2024-10-29 17:32:30 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-10-29 18:22:22 +0100 |
commit | fa4dfd4efea01d558dd4c8b0d6db39708ee03917 (patch) | |
tree | cf3cc24426da2a94f8e45fe66283cccd285e7cbc /searx/favicons/config.py | |
parent | b183e620d83892191895227b5a4207d619eb2646 (diff) | |
download | searxng-fa4dfd4efea01d558dd4c8b0d6db39708ee03917.tar.gz searxng-fa4dfd4efea01d558dd4c8b0d6db39708ee03917.zip |
[fix] favicons: msgspec.ValidationError: Expected `Path`, got `str` - at `$.favicons.cache.db_url`
Closes: https://github.com/searxng/searxng/issues/3975
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/favicons/config.py')
-rw-r--r-- | searx/favicons/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/favicons/config.py b/searx/favicons/config.py index bf53b0821..33aa157d6 100644 --- a/searx/favicons/config.py +++ b/searx/favicons/config.py @@ -27,10 +27,10 @@ class FaviconConfig(msgspec.Struct): # pylint: disable=too-few-public-methods By specifying a version, it is possible to ensure downward compatibility in the event of future changes to the configuration schema""" - cache: FaviconCacheConfig = FaviconCacheConfig + cache: FaviconCacheConfig = msgspec.field(default_factory=FaviconCacheConfig) """Setup of the :py:obj:`.cache.FaviconCacheConfig`.""" - proxy: FaviconProxyConfig = FaviconCacheConfig + proxy: FaviconProxyConfig = msgspec.field(default_factory=FaviconProxyConfig) """Setup of the :py:obj:`.proxy.FaviconProxyConfig`.""" @classmethod |