Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
fix(providers): improve error handling when retrieving providers from the database
Dmitry Ngc4859cba95c1
diff --git a/backend/pkg/providers/providers.go b/backend/pkg/providers/providers.goindex f6a11387..84c11726 100644--- a/backend/pkg/providers/providers.go+++ b/backend/pkg/providers/providers.go@@ -697,6 +697,9 @@ func (pc *providerController) SeedDefaultProviders(ctx context.Context, userID iName: prvname,UserID: userID,})+ if err != nil && !errors.Is(err, sql.ErrNoRows) {+ return fmt.Errorf("failed to get provider '%s' from database: %w", prvname, err)+ }if err != nil {_, err = pc.db.CreateProvider(ctx, database.CreateProviderParams{UserID: userID,