Skip to content

Commit 197ef63

Browse files
author
cclauss
authored
Undefined name: from pyspark.util import _exception_message
[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 ``` @HyukjinKwon
1 parent 1fd59c1 commit 197ef63

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)