mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +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:
|
||||
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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue