Skip to content

Commit 46cf4cd

Browse files
committed
whitespace
1 parent 5b3c754 commit 46cf4cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sentry_sdk/ai/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ def _normalize_data(data, unpack=True):
1818
except Exception as e:
1919
logger.warning("Could not convert pydantic data to JSON: %s", e)
2020
return data if isinstance(data, (int, float, bool, str)) else str(data)
21+
2122
if isinstance(data, list):
2223
if unpack and len(data) == 1:
2324
return _normalize_data(data[0], unpack=unpack) # remove empty dimensions
2425
return list(_normalize_data(x, unpack=unpack) for x in data)
26+
2527
if isinstance(data, dict):
2628
return {k: _normalize_data(v, unpack=unpack) for (k, v) in data.items()}
2729

0 commit comments

Comments
 (0)