Skip to content

Commit 0152cfc

Browse files
committed
comments
1 parent 7faa7ee commit 0152cfc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

databricks/sdk/logger/round_trip_logger.py

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

112112
def _redacted_dump(self, prefix: str, body: str) -> str:
113-
try:
114-
if len(body) == 0:
115-
return ""
116-
except TypeError:
113+
if not isinstance(body, str):
117114
return "unsupported body type"
118-
115+
if len(body) == 0:
116+
return ""
119117
try:
120118
# Unmarshal body into primitive types.
121119
tmp = json.loads(body)

0 commit comments

Comments
 (0)