File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
sentry_sdk/integrations/django Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -56,16 +56,16 @@ def _got_request_exception(request=None, **kwargs):
56
56
_installed = False
57
57
58
58
59
- def initialize ():
59
+ def _install ():
60
60
global _installed
61
61
with _installer_lock :
62
62
if _installed :
63
63
return
64
- _initialize_impl ()
64
+ _install_impl ()
65
65
_installed = True
66
66
67
67
68
- def _initialize_impl ():
68
+ def _install_impl ():
69
69
# default settings.MIDDLEWARE is None
70
70
if getattr (settings , 'MIDDLEWARE' , None ):
71
71
middleware_attr = 'MIDDLEWARE'
@@ -87,20 +87,18 @@ def _initialize_impl():
87
87
signals .got_request_exception .connect (_got_request_exception )
88
88
89
89
90
-
91
-
92
90
try :
93
91
# Django >= 1.7
94
92
from django .apps import AppConfig
95
93
except ImportError :
96
- initialize ()
94
+ _install ()
97
95
else :
98
96
class SentryConfig (AppConfig ):
99
97
name = 'sentry_sdk.integrations.django'
100
98
label = 'sentry_sdk_integrations_django'
101
99
verbose_name = 'Sentry'
102
100
103
101
def ready (self ):
104
- initialize ()
102
+ _install ()
105
103
106
104
default_app_config = 'sentry_sdk.integrations.django.SentryConfig'
You can’t perform that action at this time.
0 commit comments