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 json.decoder import JSONDecodeError
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
import git
|
||||||
import openai
|
import openai
|
||||||
from jsonschema import Draft7Validator
|
from jsonschema import Draft7Validator
|
||||||
from rich.console import Console, Text
|
from rich.console import Console, Text
|
||||||
|
@ -959,6 +960,9 @@ class Coder:
|
||||||
self.io.tool_error(str(err))
|
self.io.tool_error(str(err))
|
||||||
return False, None
|
return False, None
|
||||||
|
|
||||||
|
except git.exc.GitCommandError as err:
|
||||||
|
self.io.tool_error(str(err))
|
||||||
|
return False, None
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(err)
|
print(err)
|
||||||
print()
|
print()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue