# HG changeset patch # User Marcin Kuzminski # Date 2020-04-02 11:59:25 # Node ID 6bfdee89c0793f9fd4e1ee999a25455a502e08f0 # Parent 23321a25b0a2ddb096a044cc61cf983abcd4979b exc_tracker: also check for smtp_server before doing heavy lifting of exception email sending diff --git a/rhodecode/lib/exc_tracking.py b/rhodecode/lib/exc_tracking.py --- a/rhodecode/lib/exc_tracking.py +++ b/rhodecode/lib/exc_tracking.py @@ -95,6 +95,8 @@ def _store_exception(exc_id, exc_type_na if send_email is None: # NOTE(marcink): read app config unless we specify explicitly send_email = app.CONFIG.get('exception_tracker.send_email', False) + mail_server = app.CONFIG.get('smtp_server') or None + send_email = send_email and mail_server if send_email: try: