Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix deprecation of e.message
  • Loading branch information
davies committed Aug 25, 2014
commit a322f8a98f3aab60eb4e6dec9eae08c3b6f5e97b
2 changes: 1 addition & 1 deletion python/pyspark/rdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ def minmax(a, b):
try:
minv, maxv = filtered.map(lambda x: (x, x)).reduce(minmax)
except TypeError as e:
if " empty " in e.message:
if " empty " in str(e):
raise ValueError("can not generate buckets from empty RDD")
raise

Expand Down