Skip to content

Commit 6c23ac5

Browse files
committed
style: correctly initalize "settings" if {} is given as arg
1 parent 87ab734 commit 6c23ac5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dataikuapi/dssclient.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,8 @@ def execute(self, settings=None):
979979
"""
980980
# Empty JSON dicts can't be parsed properly
981981
if settings is None:
982-
settings = {"_": "_"}
982+
settings = {}
983+
if settings == {}:
984+
settings["_"] = "_"
983985
return self.client._perform_json("POST", "/projects/import/%s/process" % (self.import_id),
984986
body = settings)

0 commit comments

Comments
 (0)