File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -211,13 +211,13 @@ def setup_spotlight(options):
211211 if not isinstance (url , str ):
212212 return None
213213
214- if (
215- settings is not None
216- and settings . DEBUG
217- and env_to_bool ( os . environ . get ( "SENTRY_SPOTLIGHT_ON_ERROR" , "1" ))
218- and env_to_bool (os .environ .get ("SENTRY_SPOTLIGHT_MIDDLEWARE " , "1" ))
219- ):
220- with capture_internal_exceptions ( ):
214+ with capture_internal_exceptions ():
215+ if (
216+ settings is not None
217+ and settings . DEBUG
218+ and env_to_bool (os .environ .get ("SENTRY_SPOTLIGHT_ON_ERROR " , "1" ))
219+ and env_to_bool ( os . environ . get ( "SENTRY_SPOTLIGHT_MIDDLEWARE" , "1" ))
220+ ):
221221 middleware = settings .MIDDLEWARE
222222 if DJANGO_SPOTLIGHT_MIDDLEWARE_PATH not in middleware :
223223 settings .MIDDLEWARE = type (middleware )(
You can’t perform that action at this time.
0 commit comments