handle RecursionError

This commit is contained in:
Paul Gauthier 2024-01-02 10:12:44 -08:00
parent cc3da03a0b
commit f37488447f

View file

@ -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