We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dbaeee commit e93772cCopy full SHA for e93772c
smtp_functions.py
@@ -50,5 +50,5 @@ def send_email(error: str, config: Dynaconf) -> None:
50
smtp_conn.sendmail(sender_email, config.notification.email_recipients, msg.as_string())
51
smtp_conn.quit()
52
logging.debug("Notification email sent.")
53
- except:
54
- logging.debug("Failed to send notification email!")
+ except Exception as e:
+ logging.debug(f"Failed to send notification email! Error: {e}")
0 commit comments