mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
fix: Improve error handling in load_dotenv_files function
This commit is contained in:
parent
25c3a959dd
commit
d063be23c9
1 changed files with 6 additions and 6 deletions
|
@ -274,8 +274,8 @@ def load_dotenv_files(git_root, dotenv_fname, encoding="utf-8"):
|
|||
)
|
||||
loaded = []
|
||||
for fname in dotenv_files:
|
||||
if Path(fname).exists():
|
||||
try:
|
||||
if Path(fname).exists():
|
||||
load_dotenv(fname, override=True, encoding=encoding)
|
||||
loaded.append(fname)
|
||||
except OSError as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue