Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

bug: fix minor exception msg missing (#21255)

NeatGuyCodingd34795fc0838
diff --git a/api/libs/sendgrid.py b/api/libs/sendgrid.py
index 6217e9f4a6d..5409e3eeeb3 100644
--- a/api/libs/sendgrid.py
+++ b/api/libs/sendgrid.py
@@ -35,7 +35,10 @@ class SendGridClient:
logging.exception("SendGridClient Timeout occurred while sending email")
raise
except (UnauthorizedError, ForbiddenError) as e:
- logging.exception("SendGridClient Authentication failed. Verify that your credentials and the 'from")
+ logging.exception(
+ "SendGridClient Authentication failed. "
+ "Verify that your credentials and the 'from' email address are correct"
+ )
raise
except Exception as e:
logging.exception(f"SendGridClient Unexpected error occurred while sending email to {_to}")