Skip to content

Commit 9b503a0

Browse files
:
1 parent cfc9b7f commit 9b503a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/django/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ def _commit(self):
698698
# type: (BaseDatabaseWrapper) -> None
699699
integration = sentry_sdk.get_client().get_integration(DjangoIntegration)
700700

701-
if not integration.database_transaction_spans:
701+
if integration is None or not integration.database_transaction_spans:
702702
return real_commit(self)
703703

704704
with sentry_sdk.start_span(

0 commit comments

Comments
 (0)