mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
fix: Handle errors when loading tags cache
This commit is contained in:
parent
d12ab8c8c3
commit
743412777d
1 changed files with 5 additions and 3 deletions
|
@ -163,9 +163,11 @@ class RepoMap:
|
|||
|
||||
def load_tags_cache(self):
|
||||
path = Path(self.root) / self.TAGS_CACHE_DIR
|
||||
if not path.exists():
|
||||
self.cache_missing = True
|
||||
self.TAGS_CACHE = Cache(path)
|
||||
try:
|
||||
self.TAGS_CACHE = Cache(path)
|
||||
except sqlite3.OperationalError:
|
||||
self.io.tool_error(f"Unable to use tags cache, delete {path} to resolve.")
|
||||
self.TAGS_CACHE = dict()
|
||||
|
||||
def save_tags_cache(self):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue