mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
bugfix
This commit is contained in:
parent
64c48f2151
commit
a66f31dc87
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ from tree_sitter_languages import get_language, get_parser # noqa: E402
|
||||||
Tag = namedtuple("Tag", "rel_fname fname line name kind".split())
|
Tag = namedtuple("Tag", "rel_fname fname line name kind".split())
|
||||||
|
|
||||||
|
|
||||||
SQLITE_ERRORS = (sqlite3.OperationalError, sqlite3.DatabaseError)
|
SQLITE_ERRORS = (sqlite3.OperationalError, sqlite3.DatabaseError, OSError)
|
||||||
|
|
||||||
|
|
||||||
class RepoMap:
|
class RepoMap:
|
||||||
|
@ -197,7 +197,7 @@ class RepoMap:
|
||||||
self.TAGS_CACHE = new_cache
|
self.TAGS_CACHE = new_cache
|
||||||
return
|
return
|
||||||
|
|
||||||
except (SQLITE_ERRORS, OSError) as e:
|
except SQLITE_ERRORS as e:
|
||||||
# If anything goes wrong, warn and fall back to dict
|
# If anything goes wrong, warn and fall back to dict
|
||||||
self.io.tool_warning(
|
self.io.tool_warning(
|
||||||
f"Unable to use tags cache at {path}, falling back to memory cache"
|
f"Unable to use tags cache at {path}, falling back to memory cache"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue