From 78fb4ae2385250996b165232d776ed0facdd6c12 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 17 Aug 2024 06:22:16 -0700 Subject: [PATCH] fix: protect against null chat_fnames in cache key --- aider/repomap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/repomap.py b/aider/repomap.py index a45a7bb48..ae2167cb7 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -412,7 +412,7 @@ class RepoMap: ): # Create a cache key cache_key = ( - tuple(sorted(chat_fnames)), + tuple(sorted(chat_fnames)) if chat_fnames else None, tuple(sorted(other_fnames)) if other_fnames else None, max_map_tokens, )