Don't share local git errors with GPT #500

This commit is contained in:
Paul Gauthier 2024-03-08 12:24:54 -08:00
parent f45887d176
commit 0871764766

View file

@ -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()