diff --git a/gradio/utils.py b/gradio/utils.py index 4ec7f5c2b72ef..064b871a88bd3 100644 --- a/gradio/utils.py +++ b/gradio/utils.py @@ -1008,7 +1008,7 @@ def get_class_that_defined_method(meth: Callable): def highlight_code(code, name, attrs): try: lexer = get_lexer_by_name(name) - except: + except Exception: lexer = get_lexer_by_name("text") formatter = HtmlFormatter()