From a66f31dc87707302a1350bbe06bd972097121b42 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 7 Nov 2024 11:28:52 -0800 Subject: [PATCH] bugfix --- aider/repomap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/repomap.py b/aider/repomap.py index e4f11a432..0ec4f710a 100644 --- a/aider/repomap.py +++ b/aider/repomap.py @@ -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"