From 33dde5e4a43532838ee7b90a80906753d68d1f9a Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 29 Aug 2024 07:42:48 -0700 Subject: [PATCH] style: remove unused variable in exception handling --- aider/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/io.py b/aider/io.py index 24108b77b..1ac8d861b 100644 --- a/aider/io.py +++ b/aider/io.py @@ -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))