This commit is contained in:
Paul Gauthier 2024-11-07 11:28:52 -08:00
parent 64c48f2151
commit a66f31dc87

View file

@ -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())
SQLITE_ERRORS = (sqlite3.OperationalError, sqlite3.DatabaseError)
SQLITE_ERRORS = (sqlite3.OperationalError, sqlite3.DatabaseError, OSError)
class RepoMap:
@ -197,7 +197,7 @@ class RepoMap:
self.TAGS_CACHE = new_cache
return
except (SQLITE_ERRORS, OSError) as e:
except SQLITE_ERRORS as e:
# If anything goes wrong, warn and fall back to dict
self.io.tool_warning(
f"Unable to use tags cache at {path}, falling back to memory cache"