mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
style: fix whitespace and formatting in repomap.py
This commit is contained in:
parent
7f027ff6e5
commit
0feed0047c
1 changed files with 10 additions and 7 deletions
|
@ -178,6 +178,7 @@ class RepoMap:
|
||||||
# Delete existing cache dir
|
# Delete existing cache dir
|
||||||
if path.exists():
|
if path.exists():
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
shutil.rmtree(path)
|
shutil.rmtree(path)
|
||||||
|
|
||||||
# Try to create new cache
|
# Try to create new cache
|
||||||
|
@ -195,7 +196,9 @@ class RepoMap:
|
||||||
|
|
||||||
except (SQLITE_ERRORS, OSError) as e:
|
except (SQLITE_ERRORS, OSError) 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(f"Unable to use tags cache at {path}, falling back to memory cache")
|
self.io.tool_warning(
|
||||||
|
f"Unable to use tags cache at {path}, falling back to memory cache"
|
||||||
|
)
|
||||||
if self.verbose:
|
if self.verbose:
|
||||||
self.io.tool_warning(f"Cache error: {str(e)}")
|
self.io.tool_warning(f"Cache error: {str(e)}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue