Skip to content

Commit

Permalink
Add check for txn settings. (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
umaannamalai authored Nov 11, 2021
1 parent 6e0e764 commit 1f82ad8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions newrelic/api/database_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ def finalize_data(self, transaction, exc=None, value=None, tb=None):
database_name = None

settings = transaction.settings

if not settings:
return

tt = settings.transaction_tracer
agent_limits = settings.agent_limits
ds_tracer = settings.datastore_tracer
Expand Down

0 comments on commit 1f82ad8

Please sign in to comment.