mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
refactor: remove redundant exception handling in GitRepo
This commit is contained in:
parent
d9ef23ad99
commit
606cd0368f
1 changed files with 1 additions and 3 deletions
|
@ -291,11 +291,9 @@ class GitRepo:
|
|||
blob = next(iterator)
|
||||
if blob.type == "blob": # blob is a file
|
||||
files.add(blob.path)
|
||||
except IndexError:
|
||||
except IndexError:
|
||||
self.io.tool_warning(f"GitRepo: read error skipping {blob.path}")
|
||||
continue
|
||||
except ANY_GIT_ERROR as err:
|
||||
raise err
|
||||
except StopIteration:
|
||||
break
|
||||
except ANY_GIT_ERROR as err:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue