From 717aafee080716153c5f109349bf6756a1d6120e Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Sun, 3 Feb 2019 16:39:31 +0100 Subject: [PATCH] TODO catch this sphinx error in a reasonable way --- docs/sphinxext/codeblockext.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/sphinxext/codeblockext.py b/docs/sphinxext/codeblockext.py index efdf0243c..a5ed06548 100644 --- a/docs/sphinxext/codeblockext.py +++ b/docs/sphinxext/codeblockext.py @@ -160,10 +160,10 @@ class PygmentsBridgeExt(object): # for py3, recognize interactive sessions, but do not try parsing... lexer = sphinx.highlighting.lexers['pycon3'] elif lang == 'guess': - try: +# try: lexer = sphinx.highlighting.guess_lexer(source) - except Exception: - lexer = sphinx.highlighting.lexers['none'] +# except Exception: +# lexer = sphinx.highlighting.lexers['none'] else: if lang in sphinx.highlighting.lexers: lexer = sphinx.highlighting.lexers[lang]