Increase timeout for error mails.

This commit is contained in:
Edward Betts 2020-03-03 15:17:21 +00:00
parent 97ca0aaa34
commit 0aac0e46be

View file

@ -35,7 +35,8 @@ def setup_error_mail(app):
mail_handler = MatcherSMTPHandler(app.config['SMTP_HOST'], mail_handler = MatcherSMTPHandler(app.config['SMTP_HOST'],
app.config['MAIL_FROM'], app.config['MAIL_FROM'],
app.config['ADMINS'], app.config['ADMINS'],
app.name + ' error') app.name + ' error',
timeout=30)
mail_handler.setFormatter(formatter) mail_handler.setFormatter(formatter)
mail_handler.setLevel(logging.ERROR) mail_handler.setLevel(logging.ERROR)