Skip to content

Commit

Permalink
when in debug, not active
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejo Arias committed Mar 19, 2016
1 parent 2768e0d commit f320169
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions flask_azure_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ def init_app(self, app, **kwargs):
app.teardown_request(self.teardown)

if app.debug:
app.config['AZURE_STORAGE_ACTIVE'] = False
else:
app.config['AZURE_STORAGE_ACTIVE'] = True

if app.config['AZURE_STORAGE_ACTIVE']:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='Flask-Azure-Storage',
version='0.2',
version='0.2.1',
url='https://github.com/alejoar/Flask-Azure-Storage',
license='MIT',
author='Alejo Arias',
Expand Down

0 comments on commit f320169

Please sign in to comment.