Improve docker image and deployment scripts

This commit is contained in:
rubenwardy
2019-11-14 22:24:37 +00:00
parent 9f678d8fde
commit df247b021e
8 changed files with 18 additions and 18 deletions

View File

@@ -48,7 +48,7 @@ gravatar = Gravatar(app,
use_ssl=True,
base_url=None)
if not app.debug:
if not app.debug and app.config["MAIL_UTILS_ERROR_SEND_TO"]:
from .maillogger import register_mail_error_handler
register_mail_error_handler(app, mail)