fix: protect against null chat_fnames in cache key

This commit is contained in:
Paul Gauthier (aider) 2024-08-17 06:22:16 -07:00
parent 4eb0aa1bbd
commit 78fb4ae238

View file

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