style: remove unused variable in exception handling

This commit is contained in:
Paul Gauthier (aider) 2024-08-30 18:20:00 -07:00
parent ec18b190e9
commit fbb5d34888

View file

@ -257,8 +257,8 @@ class RepoMap:
try:
lexer = guess_lexer_for_filename(fname, code)
except Exception as ex: # On Windows, bad ref to time.clock which is deprecated?
# self.io.tool_error(f"Error lexing {fname}: {ex}")
except Exception: # On Windows, bad ref to time.clock which is deprecated?
# self.io.tool_error(f"Error lexing {fname}")
return
tokens = list(lexer.get_tokens(code))