summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelsey Francis <kelseyfrancis@gmail.com>2015-07-21 12:52:00 -0700
committerKelsey Francis <kelseyfrancis@gmail.com>2015-07-21 12:52:00 -0700
commite3e5be7a7483b91f3d10af444cba7aece64c9d4b (patch)
tree33bc09ede2827d5fd59dbfe4e6413e1d2c6e3e6d
parentbe1c85daf4a13872f02d8eaf9587382c5d5c001c (diff)
downloadraven-e3e5be7a7483b91f3d10af444cba7aece64c9d4b.tar.gz
Respect wrap_wsgi arg passed to flask.Sentry constructor
Prior to this commit any wrap_wsgi arg passed to raven.contrib.flask.Sentry() got overwritten within init_app.
-rw-r--r--raven/contrib/flask.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/raven/contrib/flask.py b/raven/contrib/flask.py
index 67ef1ca..706201a 100644
--- a/raven/contrib/flask.py
+++ b/raven/contrib/flask.py
@@ -237,7 +237,7 @@ class Sentry(object):
if wrap_wsgi is not None:
self.wrap_wsgi = wrap_wsgi
- else:
+ elif self.wrap_wsgi is None:
# Fix https://github.com/getsentry/raven-python/issues/412
# the gist is that we get errors twice in debug mode if we don't do this
if app and app.debug: