Skip to content

Commit bbeb136

Browse files
committed
cleanup
1 parent e64c3a2 commit bbeb136

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sentry_sdk/tracing_utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,10 +1171,7 @@ def _set_output_attributes(span, template, send_pii, result):
11711171
:param send_pii: Whether to send PII data.
11721172
:param result: The result of the wrapped function.
11731173
"""
1174-
attributes = {} # type: dict[str, Any]
1175-
1176-
attributes.update(_get_output_attributes(template, send_pii, result))
1177-
span.update_data(attributes or {})
1174+
span.update_data(_get_output_attributes(template, send_pii, result) or {})
11781175

11791176

11801177
# Circular imports

0 commit comments

Comments
 (0)