Skip to content

Commit

Permalink
Ensure exception message is populated correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mulby committed Jan 10, 2015
1 parent 375d96b commit 98c61cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def convert_struct(obj):
elif all(isinstance(x, tuple) and len(x) == 2 for x in obj):
d = dict(obj)
else:
raise ValueError("unexpected tuple: %s" % obj)
raise ValueError("unexpected tuple: %s" % str(obj))

elif isinstance(obj, dict):
d = obj
Expand Down

0 comments on commit 98c61cc

Please sign in to comment.