From 8b371ead92b452a64d21a286d0db93e15ea61bcf Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sun, 1 Dec 2024 07:50:17 -0800 Subject: [PATCH] refactor: remove unnecessary try/except block in FileWatcher --- aider/watch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/watch.py b/aider/watch.py index cd6512fc4..0eefa7667 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -200,6 +200,7 @@ class FileWatcher: """Extract AI comment line numbers and bang status from a file""" line_nums = [] has_bang = False + # remove try/except #ai! try: content = self.io.read_text(filepath) for i, line in enumerate(content.splitlines(), 1):