Skip to content

Commit c48bc0c

Browse files
committed
Allow empty config for ensure_job_id
Such as when no params are passed to the algo
1 parent ce88bee commit c48bc0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphdatascience/call_parameters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def ensure_job_id_in_config(self) -> str:
3030
This enables the client to check on the progress later on.
3131
"""
3232
config = self.get("config")
33-
if not config:
34-
raise ValueError("config is not set in the parameters")
33+
34+
assert config is not None, "config is not set in the parameters. This method should not be called."
3535

3636
job_id = self.get_job_id()
3737
if job_id is None:

0 commit comments

Comments
 (0)