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