Skip to content

Commit 73e4da7

Browse files
simplify attachment handling
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent 8036d85 commit 73e4da7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/databricks/sql/backend/sea/models/responses.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ def _parse_result(data: Dict[str, Any]) -> ResultData:
9494

9595
# Handle attachment field - decode from base64 if present
9696
attachment = result_data.get("attachment")
97-
if attachment is not None and isinstance(attachment, str):
98-
# Decode base64 string to bytes
97+
if attachment is not None:
9998
attachment = base64.b64decode(attachment)
10099

101100
return ResultData(

0 commit comments

Comments
 (0)