Merge branch 'main' into feature/add-anonymize-option

This commit is contained in:
Thomas Schuetz
2023-04-11 07:47:06 +02:00
committed by GitHub
3 changed files with 7 additions and 3 deletions

View File

@@ -153,7 +153,11 @@ func (a *Analysis) GetAIResults(output string, anonymize bool) error {
}
parsedText, err := a.AIClient.Parse(a.Context, texts, a.NoCache)
if err != nil {
bar.Exit()
// FIXME: can we avoid checking if output is json multiple times?
// maybe implement the progress bar better?
if output != "json" {
bar.Exit()
}
// Check for exhaustion
if strings.Contains(err.Error(), "status code: 429") {