diff options
author | Alexandre Flament <alex@al-f.net> | 2020-11-16 09:37:13 +0100 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2020-12-01 15:07:09 +0100 |
commit | 3cfef61123c789a238a4548dbf4b578e3e3ce0ba (patch) | |
tree | df3d8175f71c052fe698591163322c01959f802b /searx | |
parent | b7f1a8424a9e0623865d9406e77b5205d2e0a7cc (diff) | |
download | searxng-3cfef61123c789a238a4548dbf4b578e3e3ce0ba.tar.gz searxng-3cfef61123c789a238a4548dbf4b578e3e3ce0ba.zip |
[fix] /stats: report error percentage instead of error count
This bug exists since the PR https://github.com/searx/searx/pull/751
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index a80afb1c6..a78c4a8c3 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -72,7 +72,7 @@ def load_engine(engine_data): try: engine = load_module(engine_module + '.py', engine_dir) - except (SyntaxError, KeyboardInterrupt, SystemExit, SystemError, ImportError, RuntimeError) as e: + except (SyntaxError, KeyboardInterrupt, SystemExit, SystemError, ImportError, RuntimeError): logger.exception('Fatal exception in engine "{}"'.format(engine_module)) sys.exit(1) except: @@ -234,7 +234,7 @@ def get_engines_stats(preferences): results = to_percentage(results, max_results) scores = to_percentage(scores, max_score) scores_per_result = to_percentage(scores_per_result, max_score_per_result) - erros = to_percentage(errors, max_errors) + errors = to_percentage(errors, max_errors) return [ ( |