Skip to content

Commit

Permalink
[SEDONA-534] Disable Python warning message of finding jars (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayuasu committed Apr 28, 2024
1 parent 6b9b448 commit e34b8d4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/sedona/core/jvm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,9 @@ def get_spark_java_config(

try:
used_jar_files = java_spark_conf.get(value)
except Py4JJavaError as java_error:
error_message = "Failed to get the value of {} from SparkConf: {}".format(
value, java_error
)
except Py4JJavaError:
error_message = "Didn't find the value of {} from SparkConf".format(value)
logging.info(error_message)

return used_jar_files, error_message

Expand Down

0 comments on commit e34b8d4

Please sign in to comment.