Skip to content

Commit 8281496

Browse files
committed
ordering
1 parent 3db9949 commit 8281496

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sentry_sdk/integrations/django/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ def setup_once():
168168

169169
old_app = WSGIHandler.__call__
170170

171-
@ensure_integration_enabled(DjangoIntegration, old_app)
172171
@functools.wraps(old_app)
172+
@ensure_integration_enabled(DjangoIntegration, old_app)
173173
def sentry_patched_wsgi_handler(self, environ, start_response):
174174
# type: (Any, Dict[str, str], Callable[..., Any]) -> _ScopedResponse
175175
bound_old_app = old_app.__get__(self, WSGIHandler)
@@ -640,8 +640,8 @@ def install_sql_hook():
640640
# This won't work on Django versions < 1.6
641641
return
642642

643-
@ensure_integration_enabled(DjangoIntegration, real_execute)
644643
@functools.wraps(real_execute)
644+
@ensure_integration_enabled(DjangoIntegration, real_execute)
645645
def execute(self, sql, params=None):
646646
# type: (CursorWrapper, Any, Optional[Any]) -> Any
647647
with record_sql_queries(
@@ -660,8 +660,8 @@ def execute(self, sql, params=None):
660660

661661
return result
662662

663-
@ensure_integration_enabled(DjangoIntegration, real_executemany)
664663
@functools.wraps(real_executemany)
664+
@ensure_integration_enabled(DjangoIntegration, real_executemany)
665665
def executemany(self, sql, param_list):
666666
# type: (CursorWrapper, Any, List[Any]) -> Any
667667
with record_sql_queries(
@@ -681,8 +681,8 @@ def executemany(self, sql, param_list):
681681

682682
return result
683683

684-
@ensure_integration_enabled(DjangoIntegration, real_connect)
685684
@functools.wraps(real_connect)
685+
@ensure_integration_enabled(DjangoIntegration, real_connect)
686686
def connect(self):
687687
# type: (BaseDatabaseWrapper) -> None
688688
with capture_internal_exceptions():

0 commit comments

Comments
 (0)