Skip to content

Commit

Permalink
Merge pull request #7 from nuno-andre/patch-1
Browse files Browse the repository at this point in the history
Fix KeyError Exception if ENV isn't defined.
  • Loading branch information
greyli authored Aug 7, 2018
2 parents e32f127 + 6325acb commit 34de621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_bootstrap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '<link rel="stylesheet" href="%s" type="text/css">\n' % \
Expand Down

0 comments on commit 34de621

Please sign in to comment.