mirror of
https://github.com/searxng/searxng.git
synced 2025-07-12 07:49:22 +02:00
[enh] settings.yml: add use_default_settings option
This change is backward compatible with the existing configurations. If a settings.yml loaded from an user defined location (SEARX_SETTINGS_PATH or /etc/searx/settings.yml), then this settings can relied on the default settings.yml with this option: user_default_settings:True
This commit is contained in:
parent
6ada5bac60
commit
1cfe7f2a75
7 changed files with 312 additions and 29 deletions
|
@ -31,3 +31,11 @@ class SearxParameterException(SearxException):
|
|||
self.message = message
|
||||
self.parameter_name = name
|
||||
self.parameter_value = value
|
||||
|
||||
|
||||
class SearxSettingsException(SearxException):
|
||||
|
||||
def __init__(self, message, filename):
|
||||
super().__init__(message)
|
||||
self.message = message
|
||||
self.filename = filename
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue