Skip to content

Commit e93772c

Browse files
committed
raise error with better info
1 parent 0dbaeee commit e93772c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

smtp_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ def send_email(error: str, config: Dynaconf) -> None:
5050
smtp_conn.sendmail(sender_email, config.notification.email_recipients, msg.as_string())
5151
smtp_conn.quit()
5252
logging.debug("Notification email sent.")
53-
except:
54-
logging.debug("Failed to send notification email!")
53+
except Exception as e:
54+
logging.debug(f"Failed to send notification email! Error: {e}")

0 commit comments

Comments
 (0)