From 9b8221ce1ed97c9a442417a56e9599d3a1a84aaf Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Sun, 2 Oct 2022 22:18:55 -0400 Subject: [PATCH] Small cleanup --- .gitignore | 2 -- app/__init__.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index da4ed03..770f84a 100644 --- a/.gitignore +++ b/.gitignore @@ -20,8 +20,6 @@ temp/ .coverage htmlcov/ -*_min* - dist/ build/ *.egg-info/ diff --git a/app/__init__.py b/app/__init__.py index 82ae34a..eb31f56 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -13,6 +13,7 @@ from app import routes, email def create_app(test_config=None) -> Flask: app = Flask(__name__, instance_relative_config=True) Minify(app=app, html=True, js=True, cssless=True) + secret_key = os.environ.get('UNDERCOVER_SECRET_KEY') if not secret_key: sys.stderr.write("WARNING: UNDERCOVER_SECRET_KEY is not defined! Application may be insecure.\n") @@ -32,7 +33,6 @@ def create_app(test_config=None) -> Flask: def internal_error(e) -> HTTPException | Response: if isinstance(e, HTTPException): return e - print(str(e)) email.exception_alert(e) return make_response(render_template('error.jinja2', status=500, error_text='Internal error occurred.', extra_text="We're looking into it!"), 500)