diff --git a/app/__init__.py b/app/__init__.py index 99ff54e..c9c9cb2 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -19,7 +19,7 @@ oid = OpenID(app, os.path.join(basedir, 'tmp')) mail = Mail(app) babel = Babel(app) -if not app.debug: +if not app.debug and MAIL_SERVER != '': import logging from logging.handlers import SMTPHandler credentials = None diff --git a/app/templates/base.html b/app/templates/base.html index 358c0e3..de590fc 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -6,13 +6,13 @@ {% else %}