mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
fix: Resolve KeyError in RepoMap.get_tags_for_file method
This commit is contained in:
parent
8172b7be4b
commit
b3928dabbc
1 changed files with 2 additions and 1 deletions
|
@ -187,7 +187,8 @@ class RepoMap:
|
|||
return []
|
||||
|
||||
cache_key = fname
|
||||
if cache_key in self.TAGS_CACHE and self.TAGS_CACHE[cache_key]["mtime"] == file_mtime:
|
||||
val = self.TAGS_CACHE.get(cache_key) # Issue #1308
|
||||
if val is not None and val.get("mtime") == file_mtime:
|
||||
return self.TAGS_CACHE[cache_key]["data"]
|
||||
|
||||
# miss!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue