exc_tracker: also check for smtp_server before doing heavy lifting of exception email sending
marcink -
r4289:6bfdee89 default
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -95,6 +95,8
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
98
100
99 if send_email:
101 if send_email:
100 try:
102 try:
Comments 0
You need to be logged in to leave comments. Login now