diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index 3f113afec..33fb41061 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -12,7 +12,7 @@ {%- if stats[search_engine.name]['result_count'] -%}

{{ _('Number of results') }}: {{ stats[search_engine.name]['result_count'] }} ( {{ _('Avg.') }} )

{{- "" -}} {%- endif -%} - {%- if reliabilities[search_engine.name].errors -%} + {%- if reliabilities.get(search_engine.name, {}).errors or reliabilities.get(search_engine.name, {}).checker -%} {{ _('View error logs and submit a bug report') }} @@ -56,11 +56,11 @@ {% if checker_result or errors %} {{- "" -}} {{- "" -}} - - {%- if reliabilities[engine_name].checker %}{{ icon('exclamation-sign', 'The checker fails on the some tests') }}{% endif %} {{ r -}} + + {{ icon('exclamation-sign', 'The engine is not reliabled') }} {{ r -}} {{- "" -}} {{- "" -}} -