diff --git a/flask_bootstrap/__init__.py b/flask_bootstrap/__init__.py index 717c70c5..0cae7b1d 100644 --- a/flask_bootstrap/__init__.py +++ b/flask_bootstrap/__init__.py @@ -51,7 +51,7 @@ def load_css(version='4.1.0'): """ css_filename = 'bootstrap.min.css' serve_local = current_app.config['BOOTSTRAP_SERVE_LOCAL'] - dev = True if current_app.config['ENV'] == 'development' else False + dev = current_app.config.get('ENV') == 'development' if serve_local or dev: css = '\n' % \