We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfc9b7f commit 9b503a0Copy full SHA for 9b503a0
sentry_sdk/integrations/django/__init__.py
@@ -698,7 +698,7 @@ def _commit(self):
698
# type: (BaseDatabaseWrapper) -> None
699
integration = sentry_sdk.get_client().get_integration(DjangoIntegration)
700
701
- if not integration.database_transaction_spans:
+ if integration is None or not integration.database_transaction_spans:
702
return real_commit(self)
703
704
with sentry_sdk.start_span(
0 commit comments