mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
handle RecursionError
This commit is contained in:
parent
cc3da03a0b
commit
f37488447f
1 changed files with 6 additions and 1 deletions
|
@ -60,7 +60,12 @@ class RepoMap:
|
|||
if not other_files:
|
||||
return
|
||||
|
||||
files_listing = self.get_ranked_tags_map(chat_files, other_files)
|
||||
try:
|
||||
files_listing = self.get_ranked_tags_map(chat_files, other_files)
|
||||
except RecursionError:
|
||||
self.io.tool_error("Disabling repo map, git repo too large?")
|
||||
self.max_map_tokens = 0
|
||||
return
|
||||
if not files_listing:
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue