From 89fbe2e6b5815afef97bb56e608689fda6235817 Mon Sep 17 00:00:00 2001 From: Matt Good Date: Tue, 31 Jan 2012 11:02:30 -0800 Subject: [PATCH] Let DEBUG_TB_ENABLED take precedence over app.debug --- flask_debugtoolbar/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_debugtoolbar/__init__.py b/flask_debugtoolbar/__init__.py index 7a0bf37..4656ddf 100644 --- a/flask_debugtoolbar/__init__.py +++ b/flask_debugtoolbar/__init__.py @@ -36,7 +36,7 @@ class DebugToolbarExtension(object): self.debug_toolbars = {} self.hosts = () - if not app.debug and not app.config.get('DEBUG_TB_ENABLED'): + if not app.config.get('DEBUG_TB_ENABLED', app.debug): return if not app.config.get('SECRET_KEY'):