mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +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:
|
if not other_files:
|
||||||
return
|
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:
|
if not files_listing:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue