style: remove unused variable in exception handling

This commit is contained in:
Paul Gauthier (aider) 2024-08-29 07:42:48 -07:00
parent 50555643d1
commit 33dde5e4a4

View file

@ -82,7 +82,7 @@ class AutoCompleter(Completer):
continue
try:
lexer = guess_lexer_for_filename(fname, content)
except Exception as ex: # On Windows, bad ref to time.clock which is deprecated
except Exception: # On Windows, bad ref to time.clock which is deprecated
continue
tokens = list(lexer.get_tokens(content))