diff options
Diffstat (limited to 'osprofiler/web.py')
-rw-r--r-- | osprofiler/web.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/osprofiler/web.py b/osprofiler/web.py index 8443ca5..20875b1 100644 --- a/osprofiler/web.py +++ b/osprofiler/web.py @@ -107,8 +107,8 @@ class WsgiMiddleware(object): @webob.dec.wsgify def __call__(self, request): - if (_ENABLED is not None and not _ENABLED or - _ENABLED is None and not self.enabled): + if (_ENABLED is not None and not _ENABLED + or _ENABLED is None and not self.enabled): return request.get_response(self.application) trace_info = utils.signed_unpack(request.headers.get(X_TRACE_INFO), |