From 7faab0d3d97b9938aa4d068fd0e8982757a0a34e Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Thu, 4 May 2023 18:04:33 +0300 Subject: [PATCH] Fix bare except from #4048 --- gradio/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()