diff options
author | Alexandre Flament <alex@al-f.net> | 2021-06-16 18:28:25 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-06-17 15:29:07 +0200 |
commit | 881659ca9d29dbce5b19c5a69f03b2d1022d3615 (patch) | |
tree | 067ee53dba0755d0783436597d5c9d3d8200f841 /searx/plugins | |
parent | f83b64270c6c8cff336889b93fdf6b6e3f20ffa2 (diff) | |
download | searxng-881659ca9d29dbce5b19c5a69f03b2d1022d3615.tar.gz searxng-881659ca9d29dbce5b19c5a69f03b2d1022d3615.zip |
[mod] oscar theme: /preferences : HTML detail order match visual tabs
First details about the general tab, then detail about UI tab, etc...
No functionnal change
Diffstat (limited to 'searx/plugins')
-rw-r--r-- | searx/plugins/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/searx/plugins/__init__.py b/searx/plugins/__init__.py index f9fb3aa58..45b210662 100644 --- a/searx/plugins/__init__.py +++ b/searx/plugins/__init__.py @@ -72,6 +72,11 @@ class PluginStore(): plugin.id = plugin.name.replace(' ', '_') if not hasattr(plugin, 'preference_section'): plugin.preference_section = 'general' + if plugin.preference_section == 'query': + for plugin_attr in ('query_keywords', 'query_examples'): + if not hasattr(plugin, plugin_attr): + logger.critical('missing attribute "{0}", cannot load plugin: {1}'.format(plugin_attr, plugin)) + exit(3) self.plugins.append(plugin) def call(self, ordered_plugin_list, plugin_type, request, *args, **kwargs): |