Skip to content

Commit 6f11310

Browse files
committed
-
1 parent 075e089 commit 6f11310

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

databricks/sdk/logger/round_trip_logger.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,11 @@ def _recursive_marshal(self, v: Any, budget: int) -> Any:
110110
return v
111111

112112
def _redacted_dump(self, prefix: str, body: str) -> str:
113-
if len(body) == 0:
114-
return "body has no length"
113+
try:
114+
if len(body) == 0:
115+
return "body has no length"
116+
except TypeError:
117+
return "unsupported body type"
115118
try:
116119
# Unmarshal body into primitive types.
117120
tmp = json.loads(body)

0 commit comments

Comments
 (0)