diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2023-09-06 19:12:27 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-09-11 12:27:56 +0200 |
commit | 935aed7ca4339a72dc9ace7297d34550e991c6f9 (patch) | |
tree | 3d93dbcb238846ac9bda79444bda8dfdb6f32594 /searx/webapp.py | |
parent | 432febd810fb45181a9b575eb71a33fcda9c7703 (diff) | |
download | searxng-935aed7ca4339a72dc9ace7297d34550e991c6f9.tar.gz searxng-935aed7ca4339a72dc9ace7297d34550e991c6f9.zip |
[feature] dark theme for code highlighter in the result list
Closes: https://github.com/searxng/searxng/issues/1354
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-x | searx/webapp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/webapp.py b/searx/webapp.py index 9793ee534..ec4f7627e 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -216,7 +216,7 @@ def code_highlighter(codelines, language=None): lexer = get_lexer_by_name(language, stripall=True) except Exception as e: # pylint: disable=broad-except - logger.exception(e, exc_info=True) + logger.warning("pygments lexer: %s " % e) # if lexer is not found, using default one lexer = get_lexer_by_name('text', stripall=True) |