mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 11:45:00 +00:00
fix: Handle FileNotFoundError in find_common_root
This commit is contained in:
parent
8069e06f43
commit
27c1fd0262
1 changed files with 5 additions and 1 deletions
|
@ -308,7 +308,11 @@ def find_common_root(abs_fnames):
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return safe_abs_path(os.getcwd())
|
try:
|
||||||
|
return safe_abs_path(os.getcwd())
|
||||||
|
except FileNotFoundError:
|
||||||
|
# Fallback if cwd is deleted
|
||||||
|
return "."
|
||||||
|
|
||||||
|
|
||||||
def format_tokens(count):
|
def format_tokens(count):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue