mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Don't share local git errors with GPT #500
This commit is contained in:
parent
f45887d176
commit
0871764766
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,7 @@ import traceback
|
|||
from json.decoder import JSONDecodeError
|
||||
from pathlib import Path
|
||||
|
||||
import git
|
||||
import openai
|
||||
from jsonschema import Draft7Validator
|
||||
from rich.console import Console, Text
|
||||
|
@ -959,6 +960,9 @@ class Coder:
|
|||
self.io.tool_error(str(err))
|
||||
return False, None
|
||||
|
||||
except git.exc.GitCommandError as err:
|
||||
self.io.tool_error(str(err))
|
||||
return False, None
|
||||
except Exception as err:
|
||||
print(err)
|
||||
print()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue