Skip to content

Commit

Permalink
Handle null spark_options in storage connector (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
SirOibaf authored Jan 25, 2021
1 parent 1c0db64 commit 33d79ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/hsfs/storage_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ def __init__(
self._service_credential = service_credential
self._container_name = container_name

self._spark_options = {opt["name"]: opt["value"] for opt in spark_options}
self._spark_options = (
{opt["name"]: opt["value"] for opt in spark_options}
if spark_options
else {}
)

@classmethod
def from_response_json(cls, json_dict):
Expand Down

0 comments on commit 33d79ee

Please sign in to comment.