mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
refactor: remove unnecessary try/except block in FileWatcher
This commit is contained in:
parent
14417f70af
commit
8b371ead92
1 changed files with 1 additions and 0 deletions
|
@ -200,6 +200,7 @@ class FileWatcher:
|
||||||
"""Extract AI comment line numbers and bang status from a file"""
|
"""Extract AI comment line numbers and bang status from a file"""
|
||||||
line_nums = []
|
line_nums = []
|
||||||
has_bang = False
|
has_bang = False
|
||||||
|
# remove try/except #ai!
|
||||||
try:
|
try:
|
||||||
content = self.io.read_text(filepath)
|
content = self.io.read_text(filepath)
|
||||||
for i, line in enumerate(content.splitlines(), 1):
|
for i, line in enumerate(content.splitlines(), 1):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue