Skip to content

Commit 3a66a7f

Browse files
cclaussHyukjinKwon
authored andcommitted
[SPARK-25253][PYSPARK][FOLLOWUP] Undefined name: from pyspark.util import _exception_message
HyukjinKwon ## What changes were proposed in this pull request? add __from pyspark.util import \_exception_message__ to python/pyspark/java_gateway.py ## How was this patch tested? [flake8](http://flake8.pycqa.org) testing of https://github.com/apache/spark on Python 3.7.0 $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__ ``` ./python/pyspark/java_gateway.py:172:20: F821 undefined name '_exception_message' emsg = _exception_message(e) ^ 1 F821 undefined name '_exception_message' 1 ``` Please review http://spark.apache.org/contributing.html before opening a pull request. Closes apache#22265 from cclauss/patch-2. Authored-by: cclauss <[email protected]> Signed-off-by: hyukjinkwon <[email protected]>
1 parent ec3e998 commit 3a66a7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/pyspark/java_gateway.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
from py4j.java_gateway import java_import, JavaGateway, JavaObject, GatewayParameters
3535
from pyspark.find_spark_home import _find_spark_home
3636
from pyspark.serializers import read_int, write_with_length, UTF8Deserializer
37+
from pyspark.util import _exception_message
3738

3839

3940
def launch_gateway(conf=None):

0 commit comments

Comments
 (0)