Skip to content

Commit

Permalink
Fix bare except from gradio-app#4048
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed May 4, 2023
1 parent 6e909bd commit 7faab0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradio/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 7faab0d

Please sign in to comment.