forked from zaclys/searxng
[enh] log highlighter errors
This commit is contained in:
parent
a04fafd419
commit
a61a96d975
|
@ -115,6 +115,7 @@ def code_highlighter(codelines, language=None):
|
||||||
lexer = get_lexer_by_name(language, stripall=True)
|
lexer = get_lexer_by_name(language, stripall=True)
|
||||||
except:
|
except:
|
||||||
# if lexer is not found, using default one
|
# if lexer is not found, using default one
|
||||||
|
logger.debug('highlighter cannot find lexer for {0}'.format(language))
|
||||||
lexer = get_lexer_by_name('text', stripall=True)
|
lexer = get_lexer_by_name('text', stripall=True)
|
||||||
|
|
||||||
html_code = ''
|
html_code = ''
|
||||||
|
|
Loading…
Reference in New Issue