diff --git a/api/core/tools/provider/builtin/email/tools/send.py b/api/core/tools/provider/builtin/email/tools/send.py index 35df574a41..bf9e63e1ef 100644 --- a/api/core/tools/provider/builtin/email/tools/send.py +++ b/api/core/tools/provider/builtin/email/tools/send.py @@ -38,7 +38,7 @@ def send_mail(parmas: SendEmailToolParameters): server.sendmail(parmas.email_account, parmas.sender_to, msg.as_string()) return True except Exception as e: - logging.exception("send email failed: %s", e) + logging.exception("send email failed") return False else: # NONE or TLS try: @@ -49,5 +49,5 @@ def send_mail(parmas: SendEmailToolParameters): server.sendmail(parmas.email_account, parmas.sender_to, msg.as_string()) return True except Exception as e: - logging.exception("send email failed: %s", e) + logging.exception("send email failed") return False