Skip to content

Commit a322f8a

Browse files
committed
fix deprecation of e.message
1 parent 84e85fa commit a322f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/rdd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ def minmax(a, b):
913913
try:
914914
minv, maxv = filtered.map(lambda x: (x, x)).reduce(minmax)
915915
except TypeError as e:
916-
if " empty " in e.message:
916+
if " empty " in str(e):
917917
raise ValueError("can not generate buckets from empty RDD")
918918
raise
919919

0 commit comments

Comments
 (0)