Skip to content

Commit

Permalink
[PYTHON] Fixed typo in exception message
Browse files Browse the repository at this point in the history
Just fixing a typo in exception message, raised when attempting to pickle SparkContext.

Author: Icaro Medeiros <icaro.medeiros@gmail.com>

Closes #8724 from icaromedeiros/master.
  • Loading branch information
icaromedeiros authored and srowen committed Sep 11, 2015
1 parent b231ab8 commit c373866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def __getnewargs__(self):
# This method is called when attempting to pickle SparkContext, which is always an error:
raise Exception(
"It appears that you are attempting to reference SparkContext from a broadcast "
"variable, action, or transforamtion. SparkContext can only be used on the driver, "
"variable, action, or transformation. SparkContext can only be used on the driver, "
"not in code that it run on workers. For more information, see SPARK-5063."
)

Expand Down

0 comments on commit c373866

Please sign in to comment.