##// END OF EJS Templates
exc_tracker: disable send-email if mail server is not configured.
marcink -
r4297:7f340174 default
parent child Browse files
Show More
@@ -95,9 +95,9 b' def _store_exception(exc_id, exc_type_na'
95 if send_email is None:
95 if send_email is None:
96 # NOTE(marcink): read app config unless we specify explicitly
96 # NOTE(marcink): read app config unless we specify explicitly
97 send_email = app.CONFIG.get('exception_tracker.send_email', False)
97 send_email = app.CONFIG.get('exception_tracker.send_email', False)
98 mail_server = app.CONFIG.get('smtp_server') or None
99 send_email = send_email and mail_server
100
98
99 mail_server = app.CONFIG.get('smtp_server') or None
100 send_email = send_email and mail_server
101 if send_email:
101 if send_email:
102 try:
102 try:
103 send_exc_email(exc_id, exc_type_name)
103 send_exc_email(exc_id, exc_type_name)
General Comments 0
You need to be logged in to leave comments. Login now