Skip to content

Commit 98c61cc

Browse files
committed
Ensure exception message is populated correctly
1 parent 375d96b commit 98c61cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ def convert_struct(obj):
814814
elif all(isinstance(x, tuple) and len(x) == 2 for x in obj):
815815
d = dict(obj)
816816
else:
817-
raise ValueError("unexpected tuple: %s" % obj)
817+
raise ValueError("unexpected tuple: %s" % str(obj))
818818

819819
elif isinstance(obj, dict):
820820
d = obj

0 commit comments

Comments
 (0)